Package io.deephaven.enterprise.table
Class ReadBinlogDirectoryOptions
java.lang.Object
io.deephaven.enterprise.table.ReadBinlogDirectoryOptions
The options to read binary log files from a directory.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe batch size.intThe size ofByteBufferused to read frompath.builder()Construct a new builder.abstract Pathdir()The binary log directory.glob()The globbing pattern used to discover the binary log files.static ReadBinlogDirectoryOptionsConstructs the options.static ReadBinlogDirectoryOptionsConstructs the options usingglobinstead of the default glob.abstract Schemaschema()The schema.abstract Optional<TableDefinition>The table definition, used to limit the desired columns.
-
Constructor Details
-
ReadBinlogDirectoryOptions
public ReadBinlogDirectoryOptions()
-
-
Method Details
-
builder
Construct a new builder.- Returns:
- the builder
-
of
Constructs the options. Thelatest Schemawill be looked up via thedefault Schema Service.- Parameters:
dirPath- the directory pathnamespace- the namespacetableName- the table name- Returns:
- the options
-
of
public static ReadBinlogDirectoryOptions of(Path dirPath, String namespace, String tableName, String glob) Constructs the options usingglobinstead of the default glob. Thelatest Schemawill be looked up via thedefault Schema Service.- Parameters:
dirPath- the directory pathnamespace- the namespacetableName- the table nameglob- the glob- Returns:
- the options
-
dir
The binary log directory.- Returns:
- the binary log directory
-
glob
The globbing pattern used to discover the binary log files. The files will be processed lexicographically, as provided byPath.compareTo(Path).The globbing pattern is specified by the
getPathMatchermethod.By default, is
Namespace.TableName., guided byschema(), which will match the canonical binary log filenames.- Returns:
- the globbing pattern
-
schema
The schema.- Returns:
- the schema
-
tableDefinition
The table definition, used to limit the desired columns.- Returns:
- the table definition
-
bufferSize
@Default public int bufferSize()The size ofByteBufferused to read frompath. By default, is 8388608, which can be overridden via "ReadBinlogOptions.bufferSize". Must be at least 8192.- Returns:
- the buffer size
-
batchSize
@Default public int batchSize()The batch size. By default, is 2048, which can be overridden via "ReadBinlogOptions.batchSize". Must be at least 8192.- Returns:
- the batch size
-