public class FixedSplitSource extends Object implements ConnectorSplitSource
ConnectorSplitSource.ConnectorSplitBatch| Constructor and Description |
|---|
FixedSplitSource(Iterable<? extends ConnectorSplit> splits) |
| 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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrewindpublic FixedSplitSource(Iterable<? extends ConnectorSplit> splits)
public CompletableFuture<ConnectorSplitSource.ConnectorSplitBatch> getNextBatch(ConnectorPartitionHandle partitionHandle, int maxSize)
getNextBatch in interface ConnectorSplitSourcepublic boolean isFinished()
ConnectorSplitSourceConnectorSplit 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.
isFinished in interface ConnectorSplitSourcepublic void close()
close in interface ConnectorSplitSourceclose in interface Closeableclose in interface AutoCloseableCopyright © 2012–2022. All rights reserved.