Class BucketState

java.lang.Object
io.deephaven.clientsupport.plotdownsampling.BucketState

public class BucketState extends Object
Represents a given "pixel" in the downsampled output - the first and last value within that pixel, and the max/min value of each column we're interested in within that pixel. The arrays of values for a given downsampled table are shared between all states, so each BucketState instance tracks its own offset in those arrays.
  • Constructor Details

    • BucketState

      public BucketState(long key, int offset, ValueTracker[] valueTrackers, boolean trackNulls)
  • Method Details

    • getRowSet

      public RowSet getRowSet()
    • getKey

      public long getKey()
    • getOffset

      public long getOffset()
    • append

      public void append(long rowIndex, Chunk<? extends Values>[] valueChunks, int chunkIndex)
    • remove

      public void remove(long rowIndex)
    • update

      public void update(long rowIndex, Chunk<? extends Values>[] valueChunks, int chunkIndex)
    • shift

      public void shift(RowSetShiftData shiftData)
    • rescanIfNeeded

      public void rescanIfNeeded(DownsampleChunkContext context)
    • makeRowSet

      public RowSet makeRowSet()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate(boolean usePrev, DownsampleChunkContext context, int[] allYColumnIndexes)