Package io.prestosql.operator.index
Class StreamingIndexedData
- java.lang.Object
-
- io.prestosql.operator.index.StreamingIndexedData
-
- All Implemented Interfaces:
IndexedData
,Closeable
,AutoCloseable
@NotThreadSafe public class StreamingIndexedData extends Object implements IndexedData
-
-
Field Summary
-
Fields inherited from interface io.prestosql.operator.index.IndexedData
NO_MORE_POSITIONS, UNLOADED_INDEX_KEY
-
-
Constructor Summary
Constructors Constructor Description StreamingIndexedData(List<Type> outputTypes, List<BlockTypeOperators.BlockPositionEqual> indexKeyEqualOperators, Page indexKeyTuple, PageBuffer pageBuffer, Driver driver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendTo(long position, PageBuilder pageBuilder, int outputChannelOffset)
void
close()
long
getJoinPosition(int position, Page page)
Returns UNLOADED_INDEX_KEY if the key has not been loaded.long
getNextJoinPosition(long currentPosition)
Returns the next address to join.
-
-
-
Constructor Detail
-
StreamingIndexedData
public StreamingIndexedData(List<Type> outputTypes, List<BlockTypeOperators.BlockPositionEqual> indexKeyEqualOperators, Page indexKeyTuple, PageBuffer pageBuffer, Driver driver)
-
-
Method Detail
-
getJoinPosition
public long getJoinPosition(int position, Page page)
Description copied from interface:IndexedData
Returns UNLOADED_INDEX_KEY if the key has not been loaded. Returns NO_MORE_POSITIONS if the key has been loaded, but has no values. Returns a valid address if the key has been loaded and has values.- Specified by:
getJoinPosition
in interfaceIndexedData
-
getNextJoinPosition
public long getNextJoinPosition(long currentPosition)
Description copied from interface:IndexedData
Returns the next address to join. Returns NO_MORE_POSITIONS if there are no more values to join.- Specified by:
getNextJoinPosition
in interfaceIndexedData
-
appendTo
public void appendTo(long position, PageBuilder pageBuilder, int outputChannelOffset)
- Specified by:
appendTo
in interfaceIndexedData
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceIndexedData
-
-