Class ReaderConfig

java.lang.Object
dev.hardwood.reader.ReaderConfig

public final class ReaderConfig extends Object

Read-time behaviour knobs for ParquetFileReader.

A ReaderConfig is an immutable value carrying per-read behaviour, as opposed to HardwoodContext, which holds the shared, stateful runtime resources (the decode executor, the native decompression pools). A single context can back many reads with different configurations, so a behaviour knob never forces a fresh thread pool.

Knobs are string-keyed (see ReaderConfig.Builder.option(String, String)) so an experimental or transitional flag can be added and later retired without changing this type. The reader resolves and validates the keys it recognises; an unrecognised key is ignored, but the reader logs it at WARNING when the config is used, so a typo surfaces rather than silently taking the default.

Obtain the defaults with defaults() or set options through builder().

  • Method Details

    • defaults

      public static ReaderConfig defaults()
      The default configuration (no options set).
    • builder

      public static ReaderConfig.Builder builder()
      A builder for setting reader options.
    • options

      public Map<String,String> options()
      The options set on this config, as an immutable map. Keys are matched case-sensitively; the reader interprets and validates them.