deephaven_enterprise.system_table_logger¶
- class Codec(j_codec)[source]¶
Bases:
object
A Simple wrapper class around io.deephaven.util.codec.ObjectCodec
- log_table(namespace, table_name, table, columnPartition, internalPartition=None, applicationVersion=None, zone=None, useLas=True, logDir=None, codecs=None)[source]¶
Write tableToLog to System storage.
The table is logged to Intraday storage and can be retrieved with db.live_table. Historical tables should be written using a merge process.
- Parameters:
namespace (
str
) – the namespace of the tabletable_name (
str
) – the name of the tabletable (
Table
) – the table to logcolumnPartition (
str
) – the column partition to log to, if None then uses the current dateinternalPartition (
Optional
[str
]) – the internal partition, if None an internal partition is generatedapplicationVersion (
Optional
[int
]) – the application version, if None defaults to zerozone (
Optional
[str
]) – the time zone ID (as interpreted by java.time.ZoneId.of)useLas (
bool
) – use the log aggregator service (defaults to true)logDir (
Optional
[str
]) – the directory for writing binary log files (useLas must be false)codecs (
Optional
[Dict
[str
,Codec
]]) – an optional map of column name to Codec for encoding the values
- log_table_incremental(namespace, table_name, table, columnPartition, internalPartition=None, applicationVersion=None, zone=None, useLas=True, logDir=None, codecs=None)[source]¶
Write tableToLog to System storage.
The table is logged to Intraday storage and can be retrieved with db.live_table. 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 <i>blink</i> table, then removals are an error.
- Parameters:
namespace (
str
) – the namespace of the tabletable_name (
str
) – the name of the tabletable (
Table
) – the table to logcolumnPartition (
str
) – the column partition to log to, if None then uses the current dateinternalPartition (
Optional
[str
]) – the internal partition, if None an internal partition is generatedapplicationVersion (
Optional
[int
]) – the application version, if None defaults to zerozone (
Optional
[str
]) – the time zone ID (as interpreted by java.time.ZoneId.of)useLas (
bool
) – use the log aggregator service (defaults to true)logDir (
Optional
[str
]) – the directory for writing binary log files (useLas must be false)codecs (
Optional
[Dict
[str
,Codec
]]) – an optional map of column name to Codec for encoding the values
- Returns:
a context manager that can be used in a with statement, or alternatively you can call close() when complete.
Users should hold this return value to ensure liveness for writing.