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, convert, createBytes, createFixed, createFixed, createString, findStringClass, getData, getExpected, getResolver, getSchema, newInstanceFromString, newMap, newRecord, peekArray, read, read, readArray, readBytes, readBytes, readEnum, readField, readFixed, readMap, readMapKey, readRecord, readString, readString, readWithConversion, readWithoutConversion, 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–2017 The Apache Software Foundation. All rights reserved.