| Package | Description |
|---|---|
| org.apache.avro.reflect |
Use Java reflection to generate schemas and protocols for existing
classes.
|
| org.apache.avro.specific |
Generate specific Java classes for schemas and protocols.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ReflectData
Utilities to use existing Java classes and interfaces via reflection.
|
static class |
ReflectData.AllowNull
ReflectData implementation that permits null field values. |
| Modifier and Type | Method and Description |
|---|---|
static SpecificData |
SpecificData.get()
Return the singleton instance.
|
static <T> SpecificData |
SpecificData.getForClass(Class<T> c)
If the given class is assignable to
SpecificRecordBase, this method
returns the SpecificData instance from the field MODEL$, in order to
get the correct Conversion instances for the class. |
static SpecificData |
SpecificData.getForSchema(Schema reader)
For RECORD type schemas, this method returns the SpecificData instance of the
class associated with the schema, in order to get the right conversions for
any logical types used.
|
SpecificData |
SpecificRecordBase.getSpecificData() |
SpecificData |
SpecificDatumReader.getSpecificData()
Return the contained
SpecificData. |
SpecificData |
SpecificDatumWriter.getSpecificData()
Returns the
SpecificData implementation used by this writer. |
| Constructor and Description |
|---|
SpecificDatumReader(Schema writer,
Schema reader,
SpecificData data)
Construct given writer's schema, reader's schema, and a
SpecificData. |
SpecificDatumReader(SpecificData data)
Construct given a
SpecificData. |
SpecificDatumWriter(Schema root,
SpecificData specificData) |
SpecificDatumWriter(SpecificData specificData) |
Copyright © 2009–2020 The Apache Software Foundation. All rights reserved.