Package io.prestosql.operator.index
Class IndexLookupSourceFactory
- java.lang.Object
-
- io.prestosql.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()
void
destroy()
OuterPositionIterator
getOuterPositionIterator()
Can be called only afterLookupSourceFactory.createLookupSourceProvider()
is done and all users ofLookupSource
-s finished.List<Type>
getOutputTypes()
List<Type>
getTypes()
int
partitions()
void
setTaskContext(TaskContext taskContext)
com.google.common.util.concurrent.ListenableFuture<?>
whenBuildFinishes()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.prestosql.operator.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:
getTypes
in interfaceLookupSourceFactory
-
getOutputTypes
public List<Type> getOutputTypes()
- Specified by:
getOutputTypes
in interfaceLookupSourceFactory
-
setTaskContext
public void setTaskContext(TaskContext taskContext)
- Specified by:
setTaskContext
in interfaceLookupSourceFactory
-
createLookupSourceProvider
public com.google.common.util.concurrent.ListenableFuture<LookupSourceProvider> createLookupSourceProvider()
- Specified by:
createLookupSourceProvider
in interfaceLookupSourceFactory
-
whenBuildFinishes
public com.google.common.util.concurrent.ListenableFuture<?> whenBuildFinishes()
- Specified by:
whenBuildFinishes
in interfaceJoinBridge
-
partitions
public int partitions()
- Specified by:
partitions
in interfaceLookupSourceFactory
-
getOuterPositionIterator
public OuterPositionIterator getOuterPositionIterator()
Description copied from interface:LookupSourceFactory
Can be called only afterLookupSourceFactory.createLookupSourceProvider()
is done and all users ofLookupSource
-s finished.- Specified by:
getOuterPositionIterator
in interfaceJoinBridge
- Specified by:
getOuterPositionIterator
in interfaceLookupSourceFactory
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceJoinBridge
- Specified by:
destroy
in interfaceLookupSourceFactory
-
-