Class DoubleSsaSsaStamp
java.lang.Object
io.deephaven.engine.table.impl.ssa.DoubleSsaSsaStamp
- All Implemented Interfaces:
SsaSsaStamp
Stamp kernel for when the left hand side is a sorted chunk and the right hand side is a ticking SegmentedSortedArray.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyShift(SegmentedSortedArray leftSsa, Chunk<? extends Values> rightStampChunk, LongChunk<RowKeys> rightStampKeys, long shiftDelta, WritableRowRedirection rowRedirection, boolean disallowExactMatch) voidfindModified(SegmentedSortedArray leftSsa, RowRedirection rowRedirection, Chunk<? extends Values> rightStampChunk, LongChunk<RowKeys> rightStampIndices, RowSetBuilderRandom modifiedBuilder, SizedLongChunk<RowKeys> modifiedKeys, boolean disallowExactMatch) Adds the left rows that the modified right rows match tomodifiedBuilder.voidprocessEntry(SegmentedSortedArray leftSsa, SegmentedSortedArray rightSsa, WritableRowRedirection rowRedirection, boolean disallowExactMatch) voidprocessInsertion(SegmentedSortedArray leftSsa, Chunk<? extends Values> rightStampChunk, LongChunk<RowKeys> rightKeys, Chunk<Values> nextRightValue, WritableRowRedirection rowRedirection, RowSetBuilderRandom modifiedBuilder, SizedLongChunk<RowKeys> modifiedKeys, boolean endsWithLastValue, boolean disallowExactMatch) Restamps the left rows that the inserted right rows now match and adds them tomodifiedBuilder.voidprocessRemovals(SegmentedSortedArray leftSsa, Chunk<? extends Values> rightStampChunk, LongChunk<RowKeys> rightKeys, WritableLongChunk<RowKeys> priorRedirections, WritableRowRedirection rowRedirection, RowSetBuilderRandom modifiedBuilder, SizedLongChunk<RowKeys> modifiedKeys, boolean disallowExactMatch) Restamps the left rows that the removed right rows matched and adds them tomodifiedBuilder.
-
Method Details
-
processEntry
public void processEntry(SegmentedSortedArray leftSsa, SegmentedSortedArray rightSsa, WritableRowRedirection rowRedirection, boolean disallowExactMatch) - Specified by:
processEntryin interfaceSsaSsaStamp
-
processRemovals
public void processRemovals(SegmentedSortedArray leftSsa, Chunk<? extends Values> rightStampChunk, LongChunk<RowKeys> rightKeys, WritableLongChunk<RowKeys> priorRedirections, WritableRowRedirection rowRedirection, RowSetBuilderRandom modifiedBuilder, SizedLongChunk<RowKeys> modifiedKeys, boolean disallowExactMatch) Description copied from interface:SsaSsaStampRestamps the left rows that the removed right rows matched and adds them tomodifiedBuilder.- Specified by:
processRemovalsin interfaceSsaSsaStamp- Parameters:
modifiedKeys- scratch space for the modified left row keys, owned by the caller and reused across calls
-
processInsertion
public void processInsertion(SegmentedSortedArray leftSsa, Chunk<? extends Values> rightStampChunk, LongChunk<RowKeys> rightKeys, Chunk<Values> nextRightValue, WritableRowRedirection rowRedirection, RowSetBuilderRandom modifiedBuilder, SizedLongChunk<RowKeys> modifiedKeys, boolean endsWithLastValue, boolean disallowExactMatch) Description copied from interface:SsaSsaStampRestamps the left rows that the inserted right rows now match and adds them tomodifiedBuilder.- Specified by:
processInsertionin interfaceSsaSsaStamp- Parameters:
modifiedKeys- scratch space for the modified left row keys, owned by the caller and reused across calls
-
findModified
public void findModified(SegmentedSortedArray leftSsa, RowRedirection rowRedirection, Chunk<? extends Values> rightStampChunk, LongChunk<RowKeys> rightStampIndices, RowSetBuilderRandom modifiedBuilder, SizedLongChunk<RowKeys> modifiedKeys, boolean disallowExactMatch) Description copied from interface:SsaSsaStampAdds the left rows that the modified right rows match tomodifiedBuilder.- Specified by:
findModifiedin interfaceSsaSsaStamp- Parameters:
modifiedKeys- scratch space for the modified left row keys, owned by the caller and reused across calls
-
applyShift
public void applyShift(SegmentedSortedArray leftSsa, Chunk<? extends Values> rightStampChunk, LongChunk<RowKeys> rightStampKeys, long shiftDelta, WritableRowRedirection rowRedirection, boolean disallowExactMatch) - Specified by:
applyShiftin interfaceSsaSsaStamp
-