Package io.deephaven.enterprise.database
Class SystemTableLogger
java.lang.Object
io.deephaven.enterprise.database.SystemTableLogger
Utility to log
Table
objects to System tables via the Log Aggregator Server.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Options for writing a system table using a logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
logTable
(@NotNull Database database, @NotNull String namespace, @NotNull String tableName, @NotNull Table tableToLog, @NotNull SystemTableLogger.Options options) Write tableToLog to System storage.static SafeCloseable
logTableIncremental
(@NotNull Database database, @NotNull String namespace, @NotNull String tableName, @NotNull Table tableToLog, @NotNull SystemTableLogger.Options options) Write tableToLog and its updates to System storage.Create an options builder for use with logTable.
-
Constructor Details
-
SystemTableLogger
public SystemTableLogger()
-
-
Method Details
-
logTable
public static void logTable(@NotNull @NotNull Database database, @NotNull @NotNull String namespace, @NotNull @NotNull String tableName, @NotNull @NotNull Table tableToLog, @NotNull @NotNull SystemTableLogger.Options options) Write tableToLog to System storage.The table is logged to Intraday storage and can be retrieved with
Database.liveTable(String, String)
. Historical tables should be written using a merge process.- Parameters:
database
- a Database objectnamespace
- the namespace of the tabletableName
- the name of the tabletableToLog
- the table to logoptions
-SystemTableLogger.Options
that control write behavior
-
logTableIncremental
public static SafeCloseable logTableIncremental(@NotNull @NotNull Database database, @NotNull @NotNull String namespace, @NotNull @NotNull String tableName, @NotNull @NotNull Table tableToLog, @NotNull @NotNull SystemTableLogger.Options options) Write tableToLog and its updates to System storage.The table is logged to Intraday storage and can be retrieved with
Database.liveTable(String, String)
. Historical tables should be written using a merge process.No rows should be removed or modified in tableToLog. Modifications are an error. If the table is not a blink table, then removals are an error.
To stop logging and release resources, call
SafeCloseable.close()
on the returned value.- Parameters:
database
- a Database objectnamespace
- the namespace of the tabletableName
- the name of the tabletableToLog
- the table to logoptions
-SystemTableLogger.Options
that control write behavior
-
newOptionsBuilder
Create an options builder for use with logTable.- Returns:
- the Options.Builder
-