Package org.apache.iceberg.spark.data
Class SparkPlannedAvroReader
java.lang.Object
org.apache.iceberg.spark.data.SparkPlannedAvroReader
- All Implemented Interfaces:
org.apache.avro.io.DatumReader<org.apache.spark.sql.catalyst.InternalRow>
,SupportsRowPosition
public class SparkPlannedAvroReader
extends Object
implements org.apache.avro.io.DatumReader<org.apache.spark.sql.catalyst.InternalRow>, SupportsRowPosition
-
Method Summary
Modifier and TypeMethodDescriptionstatic SparkPlannedAvroReader
static SparkPlannedAvroReader
org.apache.spark.sql.catalyst.InternalRow
read
(org.apache.spark.sql.catalyst.InternalRow reuse, org.apache.avro.io.Decoder decoder) void
setRowPositionSupplier
(Supplier<Long> posSupplier) void
setSchema
(org.apache.avro.Schema fileSchema)
-
Method Details
-
create
-
create
-
setSchema
public void setSchema(org.apache.avro.Schema fileSchema) - Specified by:
setSchema
in interfaceorg.apache.avro.io.DatumReader<org.apache.spark.sql.catalyst.InternalRow>
-
read
public org.apache.spark.sql.catalyst.InternalRow read(org.apache.spark.sql.catalyst.InternalRow reuse, org.apache.avro.io.Decoder decoder) throws IOException - Specified by:
read
in interfaceorg.apache.avro.io.DatumReader<org.apache.spark.sql.catalyst.InternalRow>
- Throws:
IOException
-
setRowPositionSupplier
- Specified by:
setRowPositionSupplier
in interfaceSupportsRowPosition
-