Class FileWriterConfig
java.lang.Object
io.deephaven.enterprise.binlog.channels.FileWriterConfig
The configuration for creating file-based binary log writers.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileWriterConfig.Builderbuilder()Creates a builder forFileWriterConfig.static FileWriterConfig.Builderbuilder(LoggerInfo<?> loggerInfo) Initializes the builder withLoggerInfo.namespace(),LoggerInfo.tableName(), andLoggerInfo.namespaceSet().clock()The clock which will be used to determine rolling and filename formatting behavior.The close behavior.abstract PathThe directory.final ByteBufferheader()A newread-onlyheader byte buffer.The behavior after writing a new file's header.abstract StringThe internal partition.abstract StringThe namespace.abstract StringThe namespace set.final PathThe path for the standard binary log file naming convention givencolumnPartitionandtime.final Pathpath(String columnPartition, ZonedDateTime time) The path for the standard binary log file naming convention givencolumnPartitionandtime.abstract StringThe table name.
-
Constructor Details
-
FileWriterConfig
public FileWriterConfig()
-
-
Method Details
-
builder
Creates a builder forFileWriterConfig.- Returns:
- a new builder
-
builder
Initializes the builder withLoggerInfo.namespace(),LoggerInfo.tableName(), andLoggerInfo.namespaceSet().- Parameters:
loggerInfo- the logger info- Returns:
- the builder
-
directory
The directory.- Returns:
- the directory
-
header
A newread-onlyheader byte buffer. Callers are free to modify the position since a shallow copy is always returned from this method.- Returns:
- the header
-
namespace
The namespace. Must be non-empty and not contain a period.- Returns:
- the namespace
-
tableName
The table name. Must be non-empty and not contain a period.- Returns:
- the table name
-
namespaceSet
The namespace set. Must be "System" or "User".- Returns:
- the namespace set
-
internalPartition
The internal partition. Must be non-empty and not contain a period.- Returns:
- the internal partition
-
clock
The clock which will be used to determine rolling and filename formatting behavior. By default, isClock.systemDefaultZone().- Returns:
- the clock
-
headerBehavior
The behavior after writing a new file's header. By default isFileWriterConfig.ForceBehavior.FORCE.- Returns:
- the header behavior
-
closeBehavior
The close behavior. By default isFileWriterConfig.ForceBehavior.NONE.- Returns:
- the close behavior
-
path
The path for the standard binary log file naming convention givencolumnPartitionandtime. Equivalent todirectory().resolve(BinaryLogFilename.filename(namespace(), tableName(), namespaceSet(), internalPartition(), columnPartition, time)).- Parameters:
columnPartition- the column partitiontime- the time- Returns:
- the path
- See Also:
-
path
The path for the standard binary log file naming convention givencolumnPartitionandtime. Equivalent todirectory().resolve(BinaryLogFilename.filename(namespace(), tableName(), namespaceSet(), internalPartition(), columnPartition, time)).- Parameters:
columnPartition- the column partitiontime- the time- Returns:
- the path
- See Also:
-