Class ReadBinlogOptions

java.lang.Object
io.deephaven.enterprise.table.ReadBinlogOptions

@Immutable public abstract class ReadBinlogOptions extends Object
The options to read binary log file(s).
See Also:
  • Field Details

  • Constructor Details

    • ReadBinlogOptions

      public ReadBinlogOptions()
  • Method Details

    • builder

      public static ReadBinlogOptions.Builder builder()
      Construct a new builder.
      Returns:
      the builder
    • of

      public static ReadBinlogOptions of(Path path)
      Constructs the options assuming the path filename starts with a Namespace.TableName. pattern, which will be used to lookup the latest Schema via the default Schema Service.
      Parameters:
      path - the source path
      Returns:
      the options
    • determineSchema

      public static Schema determineSchema(Path path)
      Assuming the path filename starts with a Namespace.TableName. pattern, lookup the latest schema via the default Schema Service.
      Parameters:
      path - the source path
      Returns:
      the schema
    • of

      public static ReadBinlogOptions of(String namespace, String tableName, String... paths)
      Constructs the options by looking up the latest Schema via the default Schema Service.
      Parameters:
      namespace - the namespace
      tableName - the tableName
      paths - the binary log paths
      Returns:
      the options
    • paths

      public abstract List<Path> paths()
      The binary log paths.
      Returns:
      the binary log paths
    • schema

      public abstract Schema schema()
      The schema.
      Returns:
      the schema
    • tableDefinition

      public abstract Optional<TableDefinition> tableDefinition()
      The table definition, used to limit the desired columns.
      Returns:
      the table definition
    • bufferSize

      @Default public int bufferSize()
      The size of ByteBuffer used to read from path. 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