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 java.lang.Object implements org.apache.avro.io.DatumReader<org.apache.spark.sql.catalyst.InternalRow>, SupportsRowPosition
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SparkPlannedAvroReader
create(Schema schema)
static SparkPlannedAvroReader
create(Schema schema, java.util.Map<java.lang.Integer,?> constants)
org.apache.spark.sql.catalyst.InternalRow
read(org.apache.spark.sql.catalyst.InternalRow reuse, org.apache.avro.io.Decoder decoder)
void
setRowPositionSupplier(java.util.function.Supplier<java.lang.Long> posSupplier)
void
setSchema(org.apache.avro.Schema fileSchema)
-
-
-
Method Detail
-
create
public static SparkPlannedAvroReader create(Schema schema)
-
create
public static SparkPlannedAvroReader create(Schema schema, java.util.Map<java.lang.Integer,?> constants)
-
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 java.io.IOException
- Specified by:
read
in interfaceorg.apache.avro.io.DatumReader<org.apache.spark.sql.catalyst.InternalRow>
- Throws:
java.io.IOException
-
setRowPositionSupplier
public void setRowPositionSupplier(java.util.function.Supplier<java.lang.Long> posSupplier)
- Specified by:
setRowPositionSupplier
in interfaceSupportsRowPosition
-
-