Package io.prestosql.split
Class ConnectorAwareSplitSource
- java.lang.Object
-
- io.prestosql.split.ConnectorAwareSplitSource
-
- All Implemented Interfaces:
SplitSource
,Closeable
,AutoCloseable
public class ConnectorAwareSplitSource extends Object implements SplitSource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.prestosql.split.SplitSource
SplitSource.SplitBatch
-
-
Constructor Summary
Constructors Constructor Description ConnectorAwareSplitSource(CatalogName catalogName, ConnectorSplitSource source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
CatalogName
getCatalogName()
Optional<Integer>
getMinScheduleSplitBatchSize()
com.google.common.util.concurrent.ListenableFuture<SplitSource.SplitBatch>
getNextBatch(ConnectorPartitionHandle partitionHandle, Lifespan lifespan, int maxSize)
boolean
isFinished()
String
toString()
-
-
-
Constructor Detail
-
ConnectorAwareSplitSource
public ConnectorAwareSplitSource(CatalogName catalogName, ConnectorSplitSource source)
-
-
Method Detail
-
getCatalogName
public CatalogName getCatalogName()
- Specified by:
getCatalogName
in interfaceSplitSource
-
getNextBatch
public com.google.common.util.concurrent.ListenableFuture<SplitSource.SplitBatch> getNextBatch(ConnectorPartitionHandle partitionHandle, Lifespan lifespan, int maxSize)
- Specified by:
getNextBatch
in interfaceSplitSource
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceSplitSource
-
isFinished
public boolean isFinished()
- Specified by:
isFinished
in interfaceSplitSource
-
getMinScheduleSplitBatchSize
public Optional<Integer> getMinScheduleSplitBatchSize()
- Specified by:
getMinScheduleSplitBatchSize
in interfaceSplitSource
-
-