public class IndexSnapshotBuilder extends Object
Constructor and Description |
---|
IndexSnapshotBuilder(List<Type> outputTypes,
List<Integer> keyOutputChannels,
OptionalInt keyOutputHashChannel,
DriverContext driverContext,
io.airlift.units.DataSize maxMemoryInBytes,
int expectedPositions,
PagesIndex.Factory pagesIndexFactory) |
Modifier and Type | Method and Description |
---|---|
IndexSnapshot |
createIndexSnapshot(UnloadedIndexKeyRecordSet indexKeysRecordSet) |
long |
getMemoryInBytes() |
List<Type> |
getOutputTypes() |
boolean |
isMemoryExceeded() |
void |
reset() |
boolean |
tryAddPage(Page page) |
public IndexSnapshotBuilder(List<Type> outputTypes, List<Integer> keyOutputChannels, OptionalInt keyOutputHashChannel, DriverContext driverContext, io.airlift.units.DataSize maxMemoryInBytes, int expectedPositions, PagesIndex.Factory pagesIndexFactory)
public long getMemoryInBytes()
public boolean isMemoryExceeded()
public boolean tryAddPage(Page page)
public IndexSnapshot createIndexSnapshot(UnloadedIndexKeyRecordSet indexKeysRecordSet)
public void reset()
Copyright © 2012–2022. All rights reserved.