Package io.deephaven.engine.testutil
Class GenerateTableUpdates
java.lang.Object
io.deephaven.engine.testutil.GenerateTableUpdates
This class provides functions for unit tests to generate random updates to tables that were created with
TstUtils.testRefreshingTable(com.illumon.iris.db.v2.utils.Index, com.illumon.iris.db.v2.utils.ColumnHolder...).-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GenerateTableUpdates.SimulationProfilestatic final GenerateTableUpdates.SimulationProfile -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Index[]computeTableUpdates(int size, Random random, QueryTable table, TstUtils.ColumnInfo[] columnInfo) static Index[]computeTableUpdates(int size, Random random, QueryTable table, TstUtils.ColumnInfo[] columnInfo, boolean add, boolean remove, boolean modify) static voidgenerateAppends(int size, Random random, QueryTable table, TstUtils.ColumnInfo[] columnInfos) static voidgenerateShiftAwareTableUpdates(int targetUpdateSize, Random random, QueryTable table, TstUtils.ColumnInfo<?, ?>[] columnInfo) static voidgenerateShiftAwareTableUpdates(GenerateTableUpdates.SimulationProfile profile, int targetUpdateSize, Random random, QueryTable table, TstUtils.ColumnInfo<?, ?>[] columnInfo) static voidgenerateTableUpdates(int size, Random random, QueryTable table, TstUtils.ColumnInfo[] columnInfo) static voidgenerateTableUpdates(ShiftAwareListener.Update update, Random random, QueryTable table, TstUtils.ColumnInfo<?, ?>[] columnInfo)
-
Field Details
-
NO_SHIFT_PROFILE
-
DEFAULT_PROFILE
-
-
Constructor Details
-
GenerateTableUpdates
public GenerateTableUpdates()
-
-
Method Details
-
generateTableUpdates
public static void generateTableUpdates(int size, Random random, QueryTable table, TstUtils.ColumnInfo[] columnInfo) -
generateAppends
public static void generateAppends(int size, Random random, QueryTable table, TstUtils.ColumnInfo[] columnInfos) -
computeTableUpdates
public static Index[] computeTableUpdates(int size, Random random, QueryTable table, TstUtils.ColumnInfo[] columnInfo) -
computeTableUpdates
public static Index[] computeTableUpdates(int size, Random random, QueryTable table, TstUtils.ColumnInfo[] columnInfo, boolean add, boolean remove, boolean modify) -
generateShiftAwareTableUpdates
public static void generateShiftAwareTableUpdates(int targetUpdateSize, Random random, QueryTable table, TstUtils.ColumnInfo<?, ?>[] columnInfo) -
generateShiftAwareTableUpdates
public static void generateShiftAwareTableUpdates(GenerateTableUpdates.SimulationProfile profile, int targetUpdateSize, Random random, QueryTable table, TstUtils.ColumnInfo<?, ?>[] columnInfo) -
generateTableUpdates
public static void generateTableUpdates(ShiftAwareListener.Update update, Random random, QueryTable table, TstUtils.ColumnInfo<?, ?>[] columnInfo)
-