Interface ConnectorSplitSource

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
FixedSplitSource

public interface ConnectorSplitSource extends Closeable
Source of splits to be processed.

Thread-safety: the implementations are not required to be thread-safe.

  • Method Details

    • getNextBatch

      default CompletableFuture<ConnectorSplitSource.ConnectorSplitBatch> getNextBatch(int maxSize)
    • close

      void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • isFinished

      boolean isFinished()
      Returns whether any more ConnectorSplit may be produced.

      This method should only be called when there has been no invocation of getNextBatch, or result Future of previous getNextBatch is done. Calling this method at other time is not useful because the contract of such an invocation will be inherently racy.

    • getTableExecuteSplitsInfo

      default Optional<List<Object>> getTableExecuteSplitsInfo()