Class AbstractReinterpretedGenerator<T,U>

java.lang.Object
io.deephaven.engine.testutil.generator.AbstractReinterpretedGenerator<T,U>
Type Parameters:
T - the output column type
U - the generated value type
All Implemented Interfaces:
TestDataGenerator<T,U>
Direct Known Subclasses:
AbstractGenerator, UnsortedDateTimeLongGenerator

public abstract class AbstractReinterpretedGenerator<T,U> extends Object implements TestDataGenerator<T,U>
A generator that produces values of type U for use in a column of type T.
  • Constructor Details

    • AbstractReinterpretedGenerator

      public AbstractReinterpretedGenerator()
  • Method Details

    • populateChunk

      public Chunk<Attributes.Values> populateChunk(ReadOnlyIndex toAdd, Random random)
      Description copied from interface: TestDataGenerator
      Create a chunk for the given index using random for any desired entropy.
      Specified by:
      populateChunk in interface TestDataGenerator<T,U>
      Parameters:
      toAdd - the index to add values for
      random - the random number generator used for this test
      Returns:
      a chunk of primitives or boxed objects of type U
    • onRemove

      public void onRemove(ReadOnlyIndex toRemove)
      Description copied from interface: TestDataGenerator
      Called after a key has been removed from the map.
      Specified by:
      onRemove in interface TestDataGenerator<T,U>
      Parameters:
      toRemove - the index that was removed
    • shift

      public void shift(long start, long end, long delta)
      Description copied from interface: TestDataGenerator
      Called when a range is shifted.
      Specified by:
      shift in interface TestDataGenerator<T,U>
      Parameters:
      start - the start of the range to shift
      end - the end of the range to shift
      delta - the delta for the shift