Package io.trino.split
Class ConnectorAwareSplitSource
java.lang.Object
io.trino.split.ConnectorAwareSplitSource
- All Implemented Interfaces:
SplitSource,Closeable,AutoCloseable
Adapts
ConnectorSplitSource to SplitSource interface.
Thread-safety: the implementations is not thread-safe
Note: The implementation is internally not thread-safe but also ConnectorSplitSource is
not required to be thread-safe.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.split.SplitSource
SplitSource.SplitBatch -
Constructor Summary
ConstructorsConstructorDescriptionConnectorAwareSplitSource(CatalogHandle catalogHandle, ConnectorSplitSource source) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()com.google.common.util.concurrent.ListenableFuture<SplitSource.SplitBatch> getNextBatch(int maxSize) booleantoString()
-
Constructor Details
-
ConnectorAwareSplitSource
-
-
Method Details
-
getCatalogHandle
- Specified by:
getCatalogHandlein interfaceSplitSource
-
getNextBatch
public com.google.common.util.concurrent.ListenableFuture<SplitSource.SplitBatch> getNextBatch(int maxSize) - Specified by:
getNextBatchin interfaceSplitSource
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceSplitSource
-
isFinished
public boolean isFinished()- Specified by:
isFinishedin interfaceSplitSource
-
getTableExecuteSplitsInfo
- Specified by:
getTableExecuteSplitsInfoin interfaceSplitSource
-
toString
-