Package io.trino.operator.index
Class IndexSnapshotBuilder
- java.lang.Object
-
- io.trino.operator.index.IndexSnapshotBuilder
-
public class IndexSnapshotBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description IndexSnapshotBuilder(List<Type> outputTypes, List<Integer> keyOutputChannels, OptionalInt keyOutputHashChannel, DriverContext driverContext, io.airlift.units.DataSize maxMemoryInBytes, int expectedPositions, PagesIndex.Factory pagesIndexFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexSnapshotcreateIndexSnapshot(UnloadedIndexKeyRecordSet indexKeysRecordSet)longgetMemoryInBytes()List<Type>getOutputTypes()booleanisMemoryExceeded()voidreset()booleantryAddPage(Page page)
-
-
-
Constructor Detail
-
IndexSnapshotBuilder
public IndexSnapshotBuilder(List<Type> outputTypes, List<Integer> keyOutputChannels, OptionalInt keyOutputHashChannel, DriverContext driverContext, io.airlift.units.DataSize maxMemoryInBytes, int expectedPositions, PagesIndex.Factory pagesIndexFactory)
-
-
Method Detail
-
getMemoryInBytes
public long getMemoryInBytes()
-
isMemoryExceeded
public boolean isMemoryExceeded()
-
tryAddPage
public boolean tryAddPage(Page page)
-
createIndexSnapshot
public IndexSnapshot createIndexSnapshot(UnloadedIndexKeyRecordSet indexKeysRecordSet)
-
reset
public void reset()
-
-