|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avro.generic.GenericDatumReader<T>
org.apache.avro.protobuf.ProtobufDatumReader<T>
public class ProtobufDatumReader<T>
DatumReader for generated Protobuf
classes.
| Constructor Summary | |
|---|---|
|
ProtobufDatumReader()
|
|
ProtobufDatumReader(Class<T> c)
|
|
ProtobufDatumReader(Schema schema)
Construct where the writer's and reader's schemas are the same. |
|
ProtobufDatumReader(Schema writer,
Schema reader)
Construct given writer's and reader's schema. |
protected |
ProtobufDatumReader(Schema writer,
Schema reader,
ProtobufData data)
|
| Method Summary | |
|---|---|
protected Object |
createEnum(String symbol,
Schema schema)
Called to create an enum value. |
protected Object |
readBytes(Object old,
Decoder in)
Called to read byte arrays. |
protected Object |
readRecord(Object old,
Schema expected,
ResolvingDecoder in)
Called to read a record instance. |
| Methods inherited from class org.apache.avro.generic.GenericDatumReader |
|---|
addToArray, addToMap, createBytes, createString, getData, getExpected, getResolver, getSchema, newArray, newMap, peekArray, read, read, readArray, readEnum, readFixed, readInt, readMap, 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 ProtobufDatumReader()
public ProtobufDatumReader(Class<T> c)
public ProtobufDatumReader(Schema schema)
public ProtobufDatumReader(Schema writer,
Schema reader)
protected ProtobufDatumReader(Schema writer,
Schema reader,
ProtobufData data)
| Method Detail |
|---|
protected Object readRecord(Object old,
Schema expected,
ResolvingDecoder in)
throws IOException
GenericDatumReader
readRecord in class GenericDatumReader<T>IOException
protected Object createEnum(String symbol,
Schema schema)
GenericDatumReader
createEnum in class GenericDatumReader<T>
protected Object readBytes(Object old,
Decoder in)
throws IOException
GenericDatumReaderDecoder.readBytes(ByteBuffer).
readBytes in class GenericDatumReader<T>IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||