Package io.trino.operator.index
Class IndexLookupSourceFactory
java.lang.Object
io.trino.operator.index.IndexLookupSourceFactory
- All Implemented Interfaces:
JoinBridge,LookupSourceFactory
-
Constructor Summary
ConstructorsConstructorDescriptionIndexLookupSourceFactory(Set<Integer> lookupSourceInputChannels, List<Integer> keyOutputChannels, OptionalInt keyOutputHashChannel, List<Type> outputTypes, IndexBuildDriverFactoryProvider indexBuildDriverFactoryProvider, io.airlift.units.DataSize maxIndexMemorySize, IndexJoinLookupStats stats, boolean shareIndexLoading, PagesIndex.Factory pagesIndexFactory, FlatHashStrategyCompiler hashStrategyCompiler, BlockTypeOperators blockTypeOperators) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<LookupSourceProvider> voiddestroy()Can be called only afterLookupSourceFactory.createLookupSourceProvider()is done and all users ofLookupSource-s finished.getTypes()intvoidsetTaskContext(TaskContext taskContext) com.google.common.util.concurrent.ListenableFuture<Void> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.operator.join.LookupSourceFactory
finishProbeOperator, isDestroyed
-
Constructor Details
-
IndexLookupSourceFactory
public IndexLookupSourceFactory(Set<Integer> lookupSourceInputChannels, List<Integer> keyOutputChannels, OptionalInt keyOutputHashChannel, List<Type> outputTypes, IndexBuildDriverFactoryProvider indexBuildDriverFactoryProvider, io.airlift.units.DataSize maxIndexMemorySize, IndexJoinLookupStats stats, boolean shareIndexLoading, PagesIndex.Factory pagesIndexFactory, FlatHashStrategyCompiler hashStrategyCompiler, BlockTypeOperators blockTypeOperators)
-
-
Method Details
-
getTypes
- Specified by:
getTypesin interfaceLookupSourceFactory
-
getOutputTypes
- Specified by:
getOutputTypesin interfaceLookupSourceFactory
-
setTaskContext
- Specified by:
setTaskContextin interfaceLookupSourceFactory
-
createLookupSourceProvider
public com.google.common.util.concurrent.ListenableFuture<LookupSourceProvider> createLookupSourceProvider()- Specified by:
createLookupSourceProviderin interfaceLookupSourceFactory
-
whenBuildFinishes
- Specified by:
whenBuildFinishesin interfaceJoinBridge
-
partitions
public int partitions()- Specified by:
partitionsin interfaceLookupSourceFactory
-
getOuterPositionIterator
Description copied from interface:LookupSourceFactoryCan be called only afterLookupSourceFactory.createLookupSourceProvider()is done and all users ofLookupSource-s finished.- Specified by:
getOuterPositionIteratorin interfaceJoinBridge- Specified by:
getOuterPositionIteratorin interfaceLookupSourceFactory
-
destroy
public void destroy()- Specified by:
destroyin interfaceJoinBridge- Specified by:
destroyin interfaceLookupSourceFactory
-