public abstract class AvroReaderFactory extends Object
Modifier and Type | Field and Description |
---|---|
protected TreeMap<String,AvroStructureReader> |
_knownReaders
To resolve cyclic types, need to keep track of resolved named
types.
|
protected static ScalarDecoder |
READER_BOOLEAN |
protected static ScalarDecoder |
READER_BYTES |
protected static ScalarDecoder |
READER_DOUBLE |
protected static ScalarDecoder |
READER_FLOAT |
protected static ScalarDecoder |
READER_INT |
protected static ScalarDecoder |
READER_LONG |
protected static ScalarDecoder |
READER_NULL |
protected static ScalarDecoder |
READER_STRING |
Constructor and Description |
---|
AvroReaderFactory() |
Modifier and Type | Method and Description |
---|---|
protected AvroStructureReader |
createArrayReader(org.apache.avro.Schema schema) |
protected AvroFieldReader |
createFieldReader(org.apache.avro.Schema.Field field) |
static AvroStructureReader |
createFor(org.apache.avro.Schema schema) |
static AvroStructureReader |
createFor(org.apache.avro.Schema writerSchema,
org.apache.avro.Schema readerSchema) |
protected AvroStructureReader |
createMapReader(org.apache.avro.Schema schema) |
AvroStructureReader |
createReader(org.apache.avro.Schema schema)
Method for creating a reader instance for specified type,
only using specific schema that was used to encoded data
("writer schema").
|
protected AvroStructureReader |
createRecordReader(org.apache.avro.Schema schema) |
ScalarDecoder |
createScalarValueDecoder(org.apache.avro.Schema type) |
protected AvroStructureReader |
createUnionReader(org.apache.avro.Schema schema) |
protected static final ScalarDecoder READER_BOOLEAN
protected static final ScalarDecoder READER_BYTES
protected static final ScalarDecoder READER_DOUBLE
protected static final ScalarDecoder READER_FLOAT
protected static final ScalarDecoder READER_INT
protected static final ScalarDecoder READER_LONG
protected static final ScalarDecoder READER_NULL
protected static final ScalarDecoder READER_STRING
protected final TreeMap<String,AvroStructureReader> _knownReaders
public static AvroStructureReader createFor(org.apache.avro.Schema schema)
public static AvroStructureReader createFor(org.apache.avro.Schema writerSchema, org.apache.avro.Schema readerSchema)
public ScalarDecoder createScalarValueDecoder(org.apache.avro.Schema type)
public AvroStructureReader createReader(org.apache.avro.Schema schema)
protected AvroStructureReader createArrayReader(org.apache.avro.Schema schema)
protected AvroStructureReader createMapReader(org.apache.avro.Schema schema)
protected AvroStructureReader createRecordReader(org.apache.avro.Schema schema)
protected AvroStructureReader createUnionReader(org.apache.avro.Schema schema)
protected AvroFieldReader createFieldReader(org.apache.avro.Schema.Field field)
Copyright © 2020 FasterXML. All rights reserved.