Class CompositeGenerator<T>

java.lang.Object
io.deephaven.engine.testutil.generator.CompositeGenerator<T>
All Implemented Interfaces:
TestDataGenerator<T,T>

public class CompositeGenerator<T> extends Object implements TestDataGenerator<T,T>
  • Constructor Details

  • 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,T>
      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
    • getType

      public Class<T> getType()
      Specified by:
      getType in interface TestDataGenerator<T,T>
      Returns:
      the type of the chunk that we populate
    • getColumnType

      public Class<T> getColumnType()
      Specified by:
      getColumnType in interface TestDataGenerator<T,T>
      Returns:
      the type of the generated column
    • 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,T>
      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,T>
      Parameters:
      start - the start of the range to shift
      end - the end of the range to shift
      delta - the delta for the shift