Class CompositeGenerator<T>
java.lang.Object
io.deephaven.engine.testutil.generator.CompositeGenerator<T>
- All Implemented Interfaces:
TestDataGenerator<T,T>
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeGenerator(List<TestDataGenerator<T, T>> generators, double... fractions) -
Method Summary
Modifier and TypeMethodDescriptiongetType()voidonRemove(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.
-
Constructor Details
-
CompositeGenerator
-
-
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,T> - 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
-
getType
- Specified by:
getTypein interfaceTestDataGenerator<T,T> - Returns:
- the type of the chunk that we populate
-
getColumnType
- Specified by:
getColumnTypein interfaceTestDataGenerator<T,T> - Returns:
- the type of the generated column
-
onRemove
Description copied from interface:TestDataGeneratorCalled after a key has been removed from the map.- Specified by:
onRemovein interfaceTestDataGenerator<T,T> - 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,T> - Parameters:
start- the start of the range to shiftend- the end of the range to shiftdelta- the delta for the shift
-