Class OperatorAggregationStateManagerOpenAddressedBase
java.lang.Object
io.deephaven.engine.table.impl.by.OperatorAggregationStateManagerOpenAddressedBase
- Direct Known Subclasses:
StaticChunkedOperatorAggregationStateManagerOpenAddressedBase
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
protected final ColumnSource[]
protected long
protected int
static final int
-
Constructor Summary
ModifierConstructorDescriptionprotected
OperatorAggregationStateManagerOpenAddressedBase
(ColumnSource<?>[] tableKeySources, int tableSize, double maximumLoadFactor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(SafeCloseable bc, RowSequence rowSequence, ColumnSource<?>[] sources, MutableInt nextOutputPosition, WritableIntChunk<RowKeys> outputPositions) protected abstract void
build
(RowSequence rowSequence, Chunk<Values>[] sourceKeyChunks) protected void
buildTable
(TypedHasherUtil.BuildOrProbeContext.BuildContext bc, RowSequence buildRows, ColumnSource<?>[] buildSources) void
doRehash
(int nextChunkSize) abstract int
findPositionForKey
(Object key) protected int
hashToTableLocation
(int hash) makeAggregationStateBuildContext
(ColumnSource<?>[] buildSources, long maxSize) final int
protected abstract void
onNextChunk
(int nextChunkSize) protected abstract void
rehashInternalFull
(int oldSize) boolean
rehashRequired
(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()
-