Class AbstractReinterpretedGenerator<T,U>
java.lang.Object
io.deephaven.engine.testutil.generator.AbstractReinterpretedGenerator<T,U>
- Type Parameters:
T- the output column typeU- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonRemove(ReadOnlyIndex toRemove) Called after a key has been removed from the map.populateChunk(ReadOnlyIndex toAdd, Random random) Create a chunk for the given index using random for any desired entropy.voidshift(long start, long end, long delta) Called when a range is shifted.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.engine.testutil.generator.TestDataGenerator
getColumnType, getType
-
Constructor Details
-
AbstractReinterpretedGenerator
public AbstractReinterpretedGenerator()
-
-
Method Details
-
populateChunk
Description copied from interface:TestDataGeneratorCreate a chunk for the given index using random for any desired entropy.- Specified by:
populateChunkin interfaceTestDataGenerator<T,U> - Parameters:
toAdd- the index to add values forrandom- the random number generator used for this test- Returns:
- a chunk of primitives or boxed objects of type U
-
onRemove
Description copied from interface:TestDataGeneratorCalled after a key has been removed from the map.- Specified by:
onRemovein interfaceTestDataGenerator<T,U> - Parameters:
toRemove- the index that was removed
-
shift
public void shift(long start, long end, long delta) Description copied from interface:TestDataGeneratorCalled when a range is shifted.- Specified by:
shiftin interfaceTestDataGenerator<T,U> - Parameters:
start- the start of the range to shiftend- the end of the range to shiftdelta- the delta for the shift
-