Package io.deephaven.enterprise.table
Class ReadBinlogOptions
java.lang.Object
io.deephaven.enterprise.table.ReadBinlogOptions
The options to read binary log file(s).
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe batch size.intThe size ofByteBufferused to read frompath.static ReadBinlogOptions.Builderbuilder()Construct a new builder.static SchemadetermineSchema(Path path) Assuming thepathfilename starts with aNamespace.TableName.pattern, lookup thelatest schemavia thedefault Schema Service.static ReadBinlogOptionsConstructs the options by looking up thelatest Schemavia thedefault Schema Service.static ReadBinlogOptionsConstructs the options assuming thepathfilename starts with aNamespace.TableName.pattern, which will be used to lookup thelatest Schemavia thedefault Schema Service.paths()The binary log paths.abstract Schemaschema()The schema.abstract Optional<TableDefinition>The table definition, used to limit the desired columns.
-
Field Details
-
BUFFER_SIZE_PROPERTY
- See Also:
-
BATCH_SIZE_PROPERTY
- See Also:
-
BUFFER_SIZE_DEFAULT
public static final int BUFFER_SIZE_DEFAULT- See Also:
-
MIN_BUFFER_SIZE
public static final int MIN_BUFFER_SIZE- See Also:
-
BATCH_SIZE_DEFAULT
public static final int BATCH_SIZE_DEFAULT- See Also:
-
MIN_BATCH_SIZE
public static final int MIN_BATCH_SIZE- See Also:
-
-
Constructor Details
-
ReadBinlogOptions
public ReadBinlogOptions()
-
-
Method Details
-
builder
Construct a new builder.- Returns:
- the builder
-
of
Constructs the options assuming thepathfilename starts with aNamespace.TableName.pattern, which will be used to lookup thelatest Schemavia thedefault Schema Service.- Parameters:
path- the source path- Returns:
- the options
-
determineSchema
Assuming thepathfilename starts with aNamespace.TableName.pattern, lookup thelatest schemavia thedefault Schema Service.- Parameters:
path- the source path- Returns:
- the schema
-
of
Constructs the options by looking up thelatest Schemavia thedefault Schema Service.- Parameters:
namespace- the namespacetableName- the tableNamepaths- the binary log paths- Returns:
- the options
-
paths
The binary log paths.- Returns:
- the binary log paths
-
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 1.- Returns:
- the batch size
-