Class AbstractAdaptableUniqueGenerator<SV,CV>

java.lang.Object
io.deephaven.engine.testutil.generator.AbstractAdaptableUniqueGenerator<SV,CV>
All Implemented Interfaces:
TestDataGenerator<CV,CV>
Direct Known Subclasses:
UniqueIntArrayGenerator, UniqueStringArrayGenerator

public abstract class AbstractAdaptableUniqueGenerator<SV,CV> extends Object implements TestDataGenerator<CV,CV>
  • Constructor Details

    • AbstractAdaptableUniqueGenerator

      public AbstractAdaptableUniqueGenerator()
  • Method Details

    • populateChunk

      public Chunk 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<SV,CV>
      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<SV,CV>
      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<SV,CV>
      Parameters:
      start - the start of the range to shift
      end - the end of the range to shift
      delta - the delta for the shift
    • getColumnType

      public Class<CV> getColumnType()
      Specified by:
      getColumnType in interface TestDataGenerator<SV,CV>
      Returns:
      the type of the generated column