Class OperatorAggregationStateManagerOpenAddressedBase
java.lang.Object
io.deephaven.engine.table.impl.by.OperatorAggregationStateManagerOpenAddressedBase
- Direct Known Subclasses:
StaticChunkedOperatorAggregationStateManagerOpenAddressedBase
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected final ColumnSource[]protected longprotected intstatic final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOperatorAggregationStateManagerOpenAddressedBase(ColumnSource<?>[] tableKeySources, int tableSize, double maximumLoadFactor) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SafeCloseable bc, RowSequence rowSequence, ColumnSource<?>[] sources, MutableInt nextOutputPosition, WritableIntChunk<RowKeys> outputPositions) protected abstract voidbuild(RowSequence rowSequence, Chunk<Values>[] sourceKeyChunks) protected voidbuildTable(TypedHasherUtil.BuildOrProbeContext.BuildContext bc, RowSequence buildRows, ColumnSource<?>[] buildSources) voiddoRehash(int nextChunkSize) abstract intfindPositionForKey(Object key) protected inthashToTableLocation(int hash) makeAggregationStateBuildContext(ColumnSource<?>[] buildSources, long maxSize) final intprotected abstract voidonNextChunk(int nextChunkSize) protected abstract voidrehashInternalFull(int oldSize) booleanrehashRequired(int nextChunkSize)
-
Field Details
-
CHUNK_SIZE
public static final int CHUNK_SIZE -
tableSize
protected int tableSize -
numEntries
protected long numEntries -
mainKeySources
-
UNKNOWN_ROW
static final int UNKNOWN_ROW- See Also:
-
-
Constructor Details
-
OperatorAggregationStateManagerOpenAddressedBase
protected OperatorAggregationStateManagerOpenAddressedBase(ColumnSource<?>[] tableKeySources, int tableSize, double maximumLoadFactor)
-
-
Method Details
-
maxTableSize
public final int maxTableSize() -
build
-
onNextChunk
protected abstract void onNextChunk(int nextChunkSize) -
buildTable
protected void buildTable(TypedHasherUtil.BuildOrProbeContext.BuildContext bc, RowSequence buildRows, ColumnSource<?>[] buildSources) -
doRehash
public void doRehash(int nextChunkSize) -
rehashInternalFull
protected abstract void rehashInternalFull(int oldSize) -
rehashRequired
public boolean rehashRequired(int nextChunkSize) -
hashToTableLocation
protected int hashToTableLocation(int hash) -
findPositionForKey
-
makeAggregationStateBuildContext
-
add
void add(SafeCloseable bc, RowSequence rowSequence, ColumnSource<?>[] sources, MutableInt nextOutputPosition, WritableIntChunk<RowKeys> outputPositions) -
getKeyHashTableSources
ColumnSource[] getKeyHashTableSources()
-