public class ThriftDatumReader<T> extends GenericDatumReader<T>
DatumReader
for generated Thrift
classes.Modifier | Constructor and Description |
---|---|
|
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) |
Modifier and Type | Method and Description |
---|---|
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.
|
addToArray, addToMap, createBytes, createFixed, createFixed, createString, getData, getExpected, getResolver, getSchema, newMap, newRecord, peekArray, read, read, readArray, readBytes, readBytes, readEnum, readFixed, readMap, readMapKey, readRecord, readString, readString, setExpected, setSchema, skip
public ThriftDatumReader()
public ThriftDatumReader(Schema schema)
public ThriftDatumReader(Schema writer, Schema reader)
protected ThriftDatumReader(Schema writer, Schema reader, ThriftData data)
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>
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.