Interface TestColumnSource<T>

All Known Implementing Classes:
BooleanTestSource, ByteTestSource, CharTestSource, DateTimeTestSource, DoubleTestSource, FloatTestSource, ImmutableBooleanTestSource, ImmutableByteTestSource, ImmutableCharTestSource, ImmutableDateTimeTestSource, ImmutableDoubleTestSource, ImmutableFloatTestSource, ImmutableIntTestSource, ImmutableLongTestSource, ImmutableObjectTestSource, ImmutableShortTestSource, IntTestSource, LongTestSource, ObjectTestSource, ShortTestSource

public interface TestColumnSource<T>
A column source that is used within tests that we can add and remove values from at arbitrary locations.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add the chunk of data, parallel to index to this column source.
    void
    Remove the given index from the column source.
    void
    shift(long startKeyInclusive, long endKeyInclusive, long shiftDelta)
    Move data within the column source.
  • Method Details

    • remove

      void remove(ReadOnlyIndex index)
      Remove the given index from the column source.
      Parameters:
      index - the keys to remove
    • add

      void add(ReadOnlyIndex index, Chunk<Attributes.Values> data)
      Add the chunk of data, parallel to index to this column source.

      For TestColumnSources with primitive types, the chunk of data must either be of the appropriate primitive type or an ObjectChunk containing boxed values.

      Parameters:
      index - the index locations to add the data
      data - the data to add
    • shift

      void shift(long startKeyInclusive, long endKeyInclusive, long shiftDelta)
      Move data within the column source.
      Parameters:
      startKeyInclusive - the first key to shift
      endKeyInclusive - the last key to shift
      shiftDelta - how far to shift the data (either positive or negative)