Package io.trino.plugin.jdbc
Class DynamicFilteringJdbcSplitSource
java.lang.Object
io.trino.plugin.jdbc.DynamicFilteringJdbcSplitSource
- All Implemented Interfaces:
ConnectorSplitSource,Closeable,AutoCloseable
Attaches dynamic filter to
JdbcSplit after JdbcDynamicFilteringSplitManager
has waited for the collection of dynamic filters.
This allows JDBC based connectors to avoid waiting for dynamic filters again on the worker node
in JdbcRecordSetProvider. The number of splits generated by JDBC based connectors are
typically small, therefore attaching dynamic filter here does not add significant overhead.
Waiting for dynamic filters in JdbcDynamicFilteringSplitManager is preferred over waiting
for them on the worker node in JdbcRecordSetProvider to allow connectors to take advantage of
dynamic filters during the splits generation phase.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.spi.connector.ConnectorSplitSource
ConnectorSplitSource.ConnectorSplitBatch -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getNextBatch(int maxSize) static booleanisEligibleForDynamicFilter(JdbcTableHandle tableHandle) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.spi.connector.ConnectorSplitSource
getTableExecuteSplitsInfo
-
Method Details
-
getNextBatch
- Specified by:
getNextBatchin interfaceConnectorSplitSource
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceConnectorSplitSource
-
isFinished
public boolean isFinished()- Specified by:
isFinishedin interfaceConnectorSplitSource
-
isEligibleForDynamicFilter
-