Package io.trino.operator.index
Class IndexLookupSourceFactory
- java.lang.Object
-
- io.trino.operator.index.IndexLookupSourceFactory
-
- All Implemented Interfaces:
JoinBridge,LookupSourceFactory
public class IndexLookupSourceFactory extends Object implements LookupSourceFactory
-
-
Constructor Summary
Constructors Constructor Description 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, JoinCompiler joinCompiler, BlockTypeOperators blockTypeOperators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<LookupSourceProvider>createLookupSourceProvider()voiddestroy()OuterPositionIteratorgetOuterPositionIterator()Can be called only afterLookupSourceFactory.createLookupSourceProvider()is done and all users ofLookupSource-s finished.List<Type>getOutputTypes()List<Type>getTypes()intpartitions()voidsetTaskContext(TaskContext taskContext)com.google.common.util.concurrent.ListenableFuture<Void>whenBuildFinishes()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.operator.join.LookupSourceFactory
finishProbeOperator, isDestroyed
-
-
-
-
Constructor Detail
-
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, JoinCompiler joinCompiler, BlockTypeOperators blockTypeOperators)
-
-
Method Detail
-
getTypes
public List<Type> getTypes()
- Specified by:
getTypesin interfaceLookupSourceFactory
-
getOutputTypes
public List<Type> getOutputTypes()
- Specified by:
getOutputTypesin interfaceLookupSourceFactory
-
setTaskContext
public void setTaskContext(TaskContext taskContext)
- Specified by:
setTaskContextin interfaceLookupSourceFactory
-
createLookupSourceProvider
public com.google.common.util.concurrent.ListenableFuture<LookupSourceProvider> createLookupSourceProvider()
- Specified by:
createLookupSourceProviderin interfaceLookupSourceFactory
-
whenBuildFinishes
public com.google.common.util.concurrent.ListenableFuture<Void> whenBuildFinishes()
- Specified by:
whenBuildFinishesin interfaceJoinBridge
-
partitions
public int partitions()
- Specified by:
partitionsin interfaceLookupSourceFactory
-
getOuterPositionIterator
public OuterPositionIterator 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
-
-