# Uses of Class
org.apache.avro.specific.SpecificData

Packages that use SpecificData
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.

## Uses of SpecificData in org.apache.avro.reflect

Subclasses of SpecificData in org.apache.avro.reflect
Modifier and Type
Class
Description
`class`
`ReflectData`
Utilities to use existing Java classes and interfaces via reflection.
`static class`
`ReflectData.AllowNull`
`ReflectData` implementation that permits null field values.

## Uses of SpecificData in org.apache.avro.specific

Methods in org.apache.avro.specific that return SpecificData
Modifier and Type
Method
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 and UNION 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`
SpecificDatumReader.`getSpecificData()`
Return the contained `SpecificData`.
`SpecificData`
SpecificDatumWriter.`getSpecificData()`
Returns the `SpecificData` implementation used by this writer.
`SpecificData`
SpecificExceptionBase.`getSpecificData()`
`SpecificData`
SpecificRecordBase.`getSpecificData()`
Constructors in org.apache.avro.specific with parameters of type SpecificData
Modifier
Constructor
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)`
`protected`
`SpecificDatumWriter(SpecificData specificData)`
`protected`
`SpecificErrorBuilderBase(Schema schema, SpecificData model)`
Creates a SpecificErrorBuilderBase for building errors of the given type.
`protected`
`SpecificRecordBuilderBase(Schema schema, SpecificData model)`
Creates a SpecificRecordBuilderBase for building records of the given type.