Package io.trino.operator.index
Class IndexSnapshotBuilder
java.lang.Object
io.trino.operator.index.IndexSnapshotBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionIndexSnapshotBuilder(List<Type> outputTypes, List<Integer> keyOutputChannels, OptionalInt keyOutputHashChannel, DriverContext driverContext, io.airlift.units.DataSize maxMemoryInBytes, int expectedPositions, PagesIndex.Factory pagesIndexFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateIndexSnapshot(UnloadedIndexKeyRecordSet indexKeysRecordSet) longbooleanvoidreset()booleantryAddPage(Page page)
-
Constructor Details
-
IndexSnapshotBuilder
public IndexSnapshotBuilder(List<Type> outputTypes, List<Integer> keyOutputChannels, OptionalInt keyOutputHashChannel, DriverContext driverContext, io.airlift.units.DataSize maxMemoryInBytes, int expectedPositions, PagesIndex.Factory pagesIndexFactory)
-
-
Method Details
-
getOutputTypes
-
getMemoryInBytes
public long getMemoryInBytes() -
isMemoryExceeded
public boolean isMemoryExceeded() -
tryAddPage
-
createIndexSnapshot
-
reset
public void reset()
-