Class AvroReadOptions
java.lang.Object
org.apache.datafusion.AvroReadOptions
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfileExtension(String ext) schema(org.apache.arrow.vector.types.pojo.Schema schema)
-
Constructor Details
-
AvroReadOptions
public AvroReadOptions()
-
-
Method Details
-
fileExtension
-
schema
-