Package io.trino.operator.index
Class StreamingIndexedData
java.lang.Object
io.trino.operator.index.StreamingIndexedData
- All Implemented Interfaces:
IndexedData,Closeable,AutoCloseable
-
Field Summary
Fields inherited from interface io.trino.operator.index.IndexedData
NO_MORE_POSITIONS, UNLOADED_INDEX_KEY -
Constructor Summary
ConstructorsConstructorDescriptionStreamingIndexedData(List<Type> outputTypes, List<BlockTypeOperators.BlockPositionEqual> indexKeyEqualOperators, Page indexKeyTuple, PageBuffer pageBuffer, Driver driver) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(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 Details
-
StreamingIndexedData
public StreamingIndexedData(List<Type> outputTypes, List<BlockTypeOperators.BlockPositionEqual> indexKeyEqualOperators, Page indexKeyTuple, PageBuffer pageBuffer, Driver driver)
-
-
Method Details
-
getJoinPosition
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
- Specified by:
appendToin interfaceIndexedData
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceIndexedData
-