Package io.trino.operator.index
Class StreamingIndexedData
- java.lang.Object
-
- io.trino.operator.index.StreamingIndexedData
-
- All Implemented Interfaces:
IndexedData,Closeable,AutoCloseable
@NotThreadSafe public class StreamingIndexedData extends Object implements IndexedData
-
-
Field Summary
-
Fields inherited from interface io.trino.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 voidappendTo(long position, PageBuilder pageBuilder, int outputChannelOffset)voidclose()longgetJoinPosition(int position, Page page)Returns UNLOADED_INDEX_KEY if the key has not been loaded.longgetNextJoinPosition(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:IndexedDataReturns 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:
getJoinPositionin interfaceIndexedData
-
getNextJoinPosition
public long getNextJoinPosition(long currentPosition)
Description copied from interface:IndexedDataReturns the next address to join. Returns NO_MORE_POSITIONS if there are no more values to join.- Specified by:
getNextJoinPositionin interfaceIndexedData
-
appendTo
public void appendTo(long position, PageBuilder pageBuilder, int outputChannelOffset)- Specified by:
appendToin interfaceIndexedData
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceIndexedData
-
-