Interface SsaSsaStamp
- All Known Implementing Classes:
ByteReverseSsaSsaStamp,ByteSsaSsaStamp,CharReverseSsaSsaStamp,CharSsaSsaStamp,DoubleReverseSsaSsaStamp,DoubleSsaSsaStamp,EqualsConsistentObjectReverseSsaSsaStamp,EqualsConsistentObjectSsaSsaStamp,FloatReverseSsaSsaStamp,FloatSsaSsaStamp,IntReverseSsaSsaStamp,IntSsaSsaStamp,LongReverseSsaSsaStamp,LongSsaSsaStamp,ObjectReverseSsaSsaStamp,ObjectSsaSsaStamp,ShortReverseSsaSsaStamp,ShortSsaSsaStamp
public interface SsaSsaStamp
-
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.static SsaSsaStampMake a SsaSsaStamp for values of the given type, which must match the type of the SSAs it is given.voidprocessEntry(SegmentedSortedArray leftSsa, SegmentedSortedArray ssa, 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
-
make
Make a SsaSsaStamp for values of the given type, which must match the type of the SSAs it is given.- Parameters:
type- the chunk type of the valuesequalsConsistent- true when values of the data type compare equal exactly when they are equal (seeBinarySearchKernelHelper.compareConsistentWithEquality(Class)), which selects the EqualsConsistentObject stamp for Object values; it is the same decision passed toSegmentedSortedArray.make(ChunkType, boolean, boolean, int)for the SSAs this stamp is given. Other chunk types ignore it. An operation reads the registry once and passes the same decision to every kernel it creates, so its kernels come from one family.reverse- true for descending SSAs- Returns:
- the SsaSsaStamp
-
processEntry
void processEntry(SegmentedSortedArray leftSsa, SegmentedSortedArray ssa, WritableRowRedirection rowRedirection, boolean disallowExactMatch) -
processRemovals
void processRemovals(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.- Parameters:
modifiedKeys- scratch space for the modified left row keys, owned by the caller and reused across calls
-
processInsertion
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) Restamps the left rows that the inserted right rows now match and adds them tomodifiedBuilder.- Parameters:
modifiedKeys- scratch space for the modified left row keys, owned by the caller and reused across calls
-
findModified
void findModified(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.- Parameters:
modifiedKeys- scratch space for the modified left row keys, owned by the caller and reused across calls
-
applyShift
void applyShift(SegmentedSortedArray leftSsa, Chunk<? extends Values> rightStampChunk, LongChunk<RowKeys> rightStampKeys, long shiftDelta, WritableRowRedirection rowRedirection, boolean disallowExactMatch)
-