|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avro.generic.GenericData
org.apache.avro.specific.SpecificData
public class SpecificData
Utilities for generated Java classes and interfaces.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.avro.generic.GenericData |
|---|
GenericData.Array<T>, GenericData.EnumSymbol, GenericData.Fixed, GenericData.Record |
| Constructor Summary | |
|---|---|
protected |
SpecificData()
|
| Method Summary | |
|---|---|
int |
compare(Object o1,
Object o2,
Schema s)
Compare objects according to their schema. |
protected Schema |
createSchema(Type type,
Map<String,Schema> names)
Create the schema for a Java type. |
static SpecificData |
get()
Return the singleton instance. |
Class |
getClass(Schema schema)
Return the class that implements a schema, or null if none exists. |
String |
getClassName(Schema schema)
Returns the Java class name indicated by a schema's name and namespace. |
protected Schema |
getEnumSchema(Object datum)
Called to obtain the schema of a enum. |
Protocol |
getProtocol(Class iface)
Return the protocol for a Java interface. |
Schema |
getSchema(Type type)
Find the schema for a Java type. |
protected boolean |
isEnum(Object datum)
Called by the default implementation of GenericData.instanceOf(org.apache.avro.Schema, java.lang.Object). |
| Methods inherited from class org.apache.avro.generic.GenericData |
|---|
getField, getFixedSchema, getRecordSchema, hashCode, hashCodeAdd, induce, instanceOf, isArray, isBytes, isFixed, isMap, isRecord, isString, resolveUnion, setField, toString, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SpecificData()
| Method Detail |
|---|
public static SpecificData get()
protected boolean isEnum(Object datum)
GenericDataGenericData.instanceOf(org.apache.avro.Schema, java.lang.Object).
isEnum in class GenericDataprotected Schema getEnumSchema(Object datum)
GenericData
getEnumSchema in class GenericDatapublic Class getClass(Schema schema)
public String getClassName(Schema schema)
public Schema getSchema(Type type)
protected Schema createSchema(Type type,
Map<String,Schema> names)
public Protocol getProtocol(Class iface)
public int compare(Object o1,
Object o2,
Schema s)
GenericDataBinaryData.compare(byte[], int, byte[], int, Schema).
compare in class GenericData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||