Class BinaryLoggerFactory
java.lang.Object
io.deephaven.enterprise.binlog.factory.BinaryLoggerFactory
The BinaryLoggerFactory generates Version 2 loggers from a table schema.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe interface validation mode.static classAn exception thrown when a LogFormat definition is invalid. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgenerateAllLogFormatLoggersForTable(String destinationSourceRoot, String namespace, String tableName) Generate allLogFormatloggers for the given table into the specified directory.intgenerateLoggersForTable(String destinationSourceRoot, Schema schema, Set<String> classes) Generate theLogFormatloggers for the given schema into the specified directory.The interface validation mode.intThe language level for the generated code.
-
Constructor Details
-
BinaryLoggerFactory
public BinaryLoggerFactory()
-
-
Method Details
-
interfaceValidationMode
The interface validation mode. By default, isBinaryLoggerFactory.InterfaceValidationMode.IF_PRESENT.- Returns:
- the interface validation mode
-
languageLevel
@Default public int languageLevel()The language level for the generated code. By default, is8.- Returns:
- the language level
-
generateAllLogFormatLoggersForTable
public int generateAllLogFormatLoggersForTable(String destinationSourceRoot, String namespace, String tableName) Generate allLogFormatloggers for the given table into the specified directory.- Parameters:
destinationSourceRoot- the path to generate into, does not include the logger's package. For example, if your source root in your project is "/Users/developer/src/main/java" use that value. The generation, for a logger named "com.example.foo.BarLogger" would be written to "/Users/developer/src/main/java/com/example/foo/BarLogger.java".namespace- the namespace of the tabletableName- the name of the table- Returns:
- the number of generated loggers
-
generateLoggersForTable
public int generateLoggersForTable(String destinationSourceRoot, Schema schema, Set<String> classes) Generate theLogFormatloggers for the given schema into the specified directory.- Parameters:
destinationSourceRoot- the path to generate into, does not include the logger's package. For example, if your source root in your project is "/Users/developer/src/main/java" use that value. The generation, for a logger named "com.example.foo.BarLogger" would be written to "/Users/developer/src/main/java/com/example/foo/BarLogger.java".schema- the schemaclasses- the logger classes to generate- Returns:
- the number of generated loggers
-