Package io.deephaven.enterprise.replay
Class ComposableTableReplayConfiguration
java.lang.Object
io.deephaven.enterprise.replay.ComposableTableReplayConfiguration
- All Implemented Interfaces:
TableReplayConfiguration
A concrete implementation of the replay configuration for one table.
This version is composable, in in that when a particular value is not specified, we can fall through to a default configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionComposableTableReplayConfiguration(@Nullable Boolean useIntraday, @Nullable String timestampColumnName, @Nullable Boolean enabled) Create a table replay configuration. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Should the table be replayed?@Nullable BooleanShould the table be replayed?@Nullable BooleanShould the replayed table be sourced from db.liveTable?@Nullable StringWhat column in the source table should be used for the replay timestamp.booleanShould the replayed table be sourced from db.liveTable?withDefaults(@NotNull ComposableTableReplayConfiguration defaultConfiguration) Apply the given default configuration to this configuration; and return a possibly new configuration representing this configuration with the defaults.
-
Constructor Details
-
ComposableTableReplayConfiguration
public ComposableTableReplayConfiguration(@Nullable @Nullable Boolean useIntraday, @Nullable @Nullable String timestampColumnName, @Nullable @Nullable Boolean enabled) Create a table replay configuration.- Parameters:
useIntraday- should the replayed table be read using liveTable instead of historicalTable (null means to use the default).timestampColumnName- the name of the timestamp column to use (null means to use the default)enabled- if this table should be replayed (null means to use the default)
-
-
Method Details
-
maybeUseIntraday
Should the replayed table be sourced from db.liveTable?- Returns:
- true if the replayed table should be sourced from db.liveTable; false if the table should be sourced from db.historicalTable; and null if undefined.
-
timestampColumnName
What column in the source table should be used for the replay timestamp.- Specified by:
timestampColumnNamein interfaceTableReplayConfiguration- Returns:
- the name of the column to use for replay timestamps, null if undefined.
-
maybeEnabled
Should the table be replayed?- Returns:
- true if the table should be replayed; false if it should not be replayed
-
withDefaults
public ComposableTableReplayConfiguration withDefaults(@NotNull @NotNull ComposableTableReplayConfiguration defaultConfiguration) Apply the given default configuration to this configuration; and return a possibly new configuration representing this configuration with the defaults.- Parameters:
defaultConfiguration- the default configuration- Returns:
- this configuration merged with the default configuration's values for undefined properties
-
useIntraday
public boolean useIntraday()Description copied from interface:TableReplayConfigurationShould the replayed table be sourced from db.liveTable?- Specified by:
useIntradayin interfaceTableReplayConfiguration- Returns:
- true if the replayed table should be sourced from db.liveTable; false if the table should be sourced from db.historicalTable
-
enabled
public boolean enabled()Description copied from interface:TableReplayConfigurationShould the table be replayed?- Specified by:
enabledin interfaceTableReplayConfiguration- Returns:
- true if the table should be replayed; false if it should not be replayed
-