|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avro.generic.GenericDatumReader<T> org.apache.avro.specific.SpecificDatumReader<T>
public class SpecificDatumReader<T>
DatumReader
for generated Java classes.
Constructor Summary | |
---|---|
SpecificDatumReader()
|
|
SpecificDatumReader(Class<T> c)
|
|
SpecificDatumReader(Schema schema)
Construct where the writer's and reader's schemas are the same. |
|
SpecificDatumReader(Schema writer,
Schema reader)
Construct given writer's and reader's schema. |
|
SpecificDatumReader(Schema writer,
Schema reader,
SpecificData data)
Construct given writer's schema, reader's schema, and a SpecificData . |
Method Summary | |
---|---|
protected Object |
createEnum(String symbol,
Schema schema)
Called to create an enum value. |
SpecificData |
getSpecificData()
Return the contained SpecificData . |
void |
setSchema(Schema actual)
Set the writer's schema. |
Methods inherited from class org.apache.avro.generic.GenericDatumReader |
---|
addToArray, addToMap, createBytes, createString, getData, getExpected, getResolver, getSchema, newArray, newMap, peekArray, read, read, readArray, readBytes, readEnum, readFixed, readInt, readMap, readRecord, readString, readString, setExpected, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpecificDatumReader()
public SpecificDatumReader(Class<T> c)
public SpecificDatumReader(Schema schema)
public SpecificDatumReader(Schema writer, Schema reader)
public SpecificDatumReader(Schema writer, Schema reader, SpecificData data)
SpecificData
.
Method Detail |
---|
public SpecificData getSpecificData()
SpecificData
.
public void setSchema(Schema actual)
DatumReader
setSchema
in interface DatumReader<T>
setSchema
in class GenericDatumReader<T>
protected Object createEnum(String symbol, Schema schema)
GenericDatumReader
createEnum
in class GenericDatumReader<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |