Class ShortNetChangeKernel
java.lang.Object
io.deephaven.engine.table.impl.by.ssmpercentile.ShortNetChangeKernel
- All Implemented Interfaces:
NetChangeKernel
NetChangeKernel for short values, ordered by ShortComparisons.compare(short, short). Only values with the same
representation are netted; values that compare equal but differ in representation are both kept, so that the SSM
replaces its representative when the old one is removed.-
Method Summary
Modifier and TypeMethodDescriptionvoidnet(WritableChunk<Values> removes, WritableIntChunk<ChunkLengths> removeCounts, WritableChunk<Values> adds, WritableIntChunk<ChunkLengths> addCounts) Subtract the common occurrences of each value from both inputs, then drop the values whose count reaches zero.
-
Method Details
-
net
public void net(WritableChunk<Values> removes, WritableIntChunk<ChunkLengths> removeCounts, WritableChunk<Values> adds, WritableIntChunk<ChunkLengths> addCounts) Description copied from interface:NetChangeKernelSubtract the common occurrences of each value from both inputs, then drop the values whose count reaches zero. Both inputs must be sorted and free of duplicates, asCompactKernel.compactAndCountleaves them, with parallel counts. On return both inputs are still sorted, and every count is positive.- Specified by:
netin interfaceNetChangeKernel- Parameters:
removes- the values removed, input and outputremoveCounts- the number of times each value inremoveswas removed, input and outputadds- the values added, input and outputaddCounts- the number of times each value inaddswas added, input and output
-