Class V2Logger
java.lang.Object
io.deephaven.enterprise.schema.internal.V2Logger
Encapsulates the schema information specific to a V2Logger.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe valid values for instrumentation columns. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanBy default, istrue.booleanfinal V2LoggerColumnRetrieve theV2LoggerColumnobject for the named column.abstract Map<String,V2LoggerColumn> Retrieve the map of column names toV2LoggerColumnobjects that define how this logger operates.The columns that are passed as input to this import state.What is the type of the import state for this logger's listener?booleanBy default, isfalse.booleanShould this logger definition only be used for generating a listener in the DIS.abstract intbooleanShould this logger definition only be used for generating a logger, and not a listener.abstract StringThe namespace.abstract Map<String,V2ObjectInput> abstract StringThe table name.booleanShould this logger generate thread safe code.
-
Constructor Details
-
V2Logger
public V2Logger()
-
-
Method Details
-
namespace
The namespace.- Returns:
- the namespace
-
tableName
The table name.- Returns:
- the table name
-
getColumns
Retrieve the map of column names toV2LoggerColumnobjects that define how this logger operates.- Returns:
- a map of column names to column information
-
getColumn
Retrieve theV2LoggerColumnobject for the named column.- Parameters:
name- the name of the column- Returns:
- the
V2LoggerColumninformation, or null if not present
-
generateLogMethod
@Default public boolean generateLogMethod()- Returns:
- should this logger include a "log" method and the necessary writer. If false, only buffer preparation methods are available.
-
logFormat
public abstract int logFormat()- Returns:
- the application version (log format) for the binary logs generated by this logger
-
loggerClass
- Returns:
- the full classname (including package) of this logger?
-
loggerInterface
- Returns:
- the full classname (including package) of an optional interface implemented by this logger.
-
generateLoggerInfo
@Default public boolean generateLoggerInfo()By default, istrue.- Returns:
- include
LoggerInfosupport
-
includeRowFlags
@Default public boolean includeRowFlags()By default, isfalse.- Returns:
- should the log and row population methods include the row flags byte?
-
columnPartitionArgument
- Returns:
- an argument name for dynamic partitions. If not specified, then the system is responsible for determining the partition to use.
-
timePartitionColumn
- Returns:
- a temporal column that should be used to calculate the partition column.
-
objectInputTypes
- Returns:
- the map of the log function ObjectInputs (for POJOs) parameter names to type names.
-
threadSafe
@Default public boolean threadSafe()Should this logger generate thread safe code. By default, istrue.If you use codecs, this results in a
ThreadLocalfor each column codec. If the logger is not marked thread safe, then a single codec is used without the overhead of a thread local variable.Note, that even if a logger is thread safe, the writer may not be. If you include flags on logged rows, there is no synchronization between transactions and you must externally synchronize.
- Returns:
- if this logger is internally thread safe
-
listenerOnly
@Default public boolean listenerOnly()Should this logger definition only be used for generating a listener in the DIS. By default, isfalse.This is useful for maintaining old log formats, but not continuing to generate the logger.
- Returns:
- true if this is a definition for a listener only
-
loggerOnly
@Default public boolean loggerOnly()Should this logger definition only be used for generating a logger, and not a listener. By default, isfalse.This is required if you have multiple loggers for a single format; only one listener for each format is permitted to prevent ambiguity.
- Returns:
- true if this is a definition for a logger only
-
importStateType
What is the type of the import state for this logger's listener?- Returns:
- the name of the import state for this logger's listener.
-
importStateColumns
The columns that are passed as input to this import state.- Returns:
- the list of column names used as import for this import state.
-