|
||||||||||
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.thrift.ThriftDatumReader<T>
public class ThriftDatumReader<T>
DatumReader
for generated Thrift
classes.
Constructor Summary | |
---|---|
|
ThriftDatumReader()
|
|
ThriftDatumReader(Class<T> c)
|
|
ThriftDatumReader(Schema schema)
Construct where the writer's and reader's schemas are the same. |
|
ThriftDatumReader(Schema writer,
Schema reader)
Construct given writer's and reader's schema. |
protected |
ThriftDatumReader(Schema writer,
Schema reader,
ThriftData data)
|
Method Summary | |
---|---|
protected Object |
createEnum(String symbol,
Schema schema)
Called to create an enum value. |
protected Object |
newArray(Object old,
int size,
Schema schema)
Called to create new array instances. |
protected Object |
readInt(Object old,
Schema s,
Decoder in)
Called to read integers. |
Methods inherited from class org.apache.avro.generic.GenericDatumReader |
---|
addToArray, addToMap, createBytes, createString, getData, getExpected, getResolver, getSchema, newMap, peekArray, read, read, readArray, readBytes, readEnum, readFixed, readMap, readRecord, readString, readString, setExpected, setSchema, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThriftDatumReader()
public ThriftDatumReader(Class<T> c)
public ThriftDatumReader(Schema schema)
public ThriftDatumReader(Schema writer, Schema reader)
protected ThriftDatumReader(Schema writer, Schema reader, ThriftData data)
Method Detail |
---|
protected Object createEnum(String symbol, Schema schema)
GenericDatumReader
createEnum
in class GenericDatumReader<T>
protected Object readInt(Object old, Schema s, Decoder in) throws IOException
GenericDatumReader
Decoder.readInt()
.
readInt
in class GenericDatumReader<T>
IOException
protected Object newArray(Object old, int size, Schema schema)
GenericDatumReader
GenericData.Array
.
newArray
in class GenericDatumReader<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |