Class AvroReadOptions

java.lang.Object
org.apache.datafusion.AvroReadOptions

public final class AvroReadOptions extends Object
Configuration knobs for Avro sources passed to SessionContext.registerAvro(String, String, AvroReadOptions) and SessionContext.readAvro(String, AvroReadOptions).

Mirrors the subset of DataFusion's AvroReadOptions that maps onto the Java surface today: fileExtension (default ".avro") and an explicit Arrow schema that bypasses on-read schema inference. tablePartitionCols is intentionally deferred -- no other Java reader exposes Hive-style partitioning yet.

Avro carries its own per-block compression (snappy, deflate, bzip2, xz, zstandard) inside the object container itself, negotiated when the file is written, so unlike CSV / NDJSON there is no FileCompressionType setter.

  • Constructor Details

    • AvroReadOptions

      public AvroReadOptions()
  • Method Details