D
- Java class of datums produced by this readerpublic class NameMappingDatumReader<D> extends java.lang.Object implements org.apache.avro.io.DatumReader<D>, SupportsRowPosition
Constructor and Description |
---|
NameMappingDatumReader(NameMapping nameMapping,
org.apache.avro.io.DatumReader<D> wrapped) |
Modifier and Type | Method and Description |
---|---|
D |
read(D reuse,
org.apache.avro.io.Decoder in) |
void |
setRowPositionSupplier(java.util.function.Supplier<java.lang.Long> posSupplier) |
void |
setSchema(org.apache.avro.Schema newFileSchema) |
public NameMappingDatumReader(NameMapping nameMapping, org.apache.avro.io.DatumReader<D> wrapped)
public void setSchema(org.apache.avro.Schema newFileSchema)
setSchema
in interface org.apache.avro.io.DatumReader<D>
public D read(D reuse, org.apache.avro.io.Decoder in) throws java.io.IOException
read
in interface org.apache.avro.io.DatumReader<D>
java.io.IOException
public void setRowPositionSupplier(java.util.function.Supplier<java.lang.Long> posSupplier)
setRowPositionSupplier
in interface SupportsRowPosition