Package io.trino.spi.connector
Interface ConnectorSplitSource
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
FixedSplitSource
Source of splits to be processed.
Thread-safety: the implementations are not required to be thread-safe.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getNextBatch(int maxSize) booleanReturns whether any moreConnectorSplitmay be produced.
-
Method Details
-
getNextBatch
-
close
void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
isFinished
boolean isFinished()Returns whether any moreConnectorSplitmay 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
-