public interface ConnectorSplitSource extends Closeable
| Modifier and Type | Interface and Description |
|---|---|
static class |
ConnectorSplitSource.ConnectorSplitBatch |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CompletableFuture<ConnectorSplitSource.ConnectorSplitBatch> |
getNextBatch(ConnectorPartitionHandle partitionHandle,
int maxSize) |
boolean |
isFinished()
Returns whether any more
ConnectorSplit may be produced. |
default void |
rewind(ConnectorPartitionHandle partitionHandle) |
CompletableFuture<ConnectorSplitSource.ConnectorSplitBatch> getNextBatch(ConnectorPartitionHandle partitionHandle, int maxSize)
default void rewind(ConnectorPartitionHandle partitionHandle)
void close()
close in interface AutoCloseableclose in interface Closeableboolean isFinished()
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.
Copyright © 2012–2022. All rights reserved.