Package io.deephaven.enterprise.database
Class ReplayAccess
java.lang.Object
io.deephaven.enterprise.database.ReplayAccess
- All Implemented Interfaces:
Database.DatabaseTableAccess<ReplayAccess.Options>,TableAccess<ReplayAccess.Options>
public final class ReplayAccess
extends Object
implements Database.DatabaseTableAccess<ReplayAccess.Options>
Replay-related access to
Database tables.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceReplay access options.static interfaceThe outputTableattributes.static interfaceThe replay mode.static interfaceThe source of replayed data. -
Method Summary
Modifier and TypeMethodDescriptionfactory()booleanisRefreshing(ReplayAccess.Options options) Return whether callingDatabase.DatabaseTableAccess.table(Object)withoptionswould result in aTable.isRefreshing().table(@NotNull ReplayAccess.Options options) Fetch the table according to theoptionswith appropriate access controls applied.Replays the given table from historical data starting at the givenstartInstant, time will advance relative to thesystem clockusingunsorted mode, and the resultingTablewill beadd-only.Replays the given table from historical data starting at the givenstartInstant, time will advance relative to thesystem clockusingunsorted mode, and the resultingTablewill beadd-only output.
-
Method Details
-
factory
- Returns:
- the replay access factory
-
table
Replays the given table from historical data starting at the givenstartInstant, time will advance relative to thesystem clockusingunsorted mode, and the resultingTablewill beadd-only. The timestamp column is inferred from the schema.- Parameters:
namespace- the namespacetableName- the table namestartInstant- the start of the replay clock- Returns:
- the replay table
-
table
public Table table(String namespace, String tableName, Instant startInstant, String timestampColumnName) Replays the given table from historical data starting at the givenstartInstant, time will advance relative to thesystem clockusingunsorted mode, and the resultingTablewill beadd-only output.- Parameters:
namespace- the namespacetableName- the table namestartInstant- the start of the replay clocktimestampColumnName- the timestamp column name- Returns:
- the replay table
-
isRefreshing
Description copied from interface:Database.DatabaseTableAccessReturn whether callingDatabase.DatabaseTableAccess.table(Object)withoptionswould result in aTable.isRefreshing().- Specified by:
isRefreshingin interfaceDatabase.DatabaseTableAccess<ReplayAccess.Options>- Parameters:
options- the options- Returns:
- if the table should be refreshing
-
table
Description copied from interface:Database.DatabaseTableAccessFetch the table according to theoptionswith appropriate access controls applied.- Specified by:
tablein interfaceDatabase.DatabaseTableAccess<ReplayAccess.Options>- Specified by:
tablein interfaceTableAccess<ReplayAccess.Options>- Parameters:
options- the options- Returns:
- the table
-