public class SpecificDatumReader<T> extends GenericDatumReader<T>
DatumReader
for generated Java classes.Constructor and Description |
---|
SpecificDatumReader() |
SpecificDatumReader(Class<T> c)
Construct for reading instances of a class.
|
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 . |
SpecificDatumReader(SpecificData data)
Construct given a
SpecificData . |
Modifier and Type | Method and Description |
---|---|
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.
|
addToArray, addToMap, createBytes, createFixed, createFixed, createString, getData, getExpected, getResolver, getSchema, newArray, newMap, newRecord, peekArray, read, read, readArray, readBytes, readBytes, readEnum, readFixed, readInt, readMap, readMapKey, readRecord, readString, readString, setExpected, skip
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
.public SpecificDatumReader(SpecificData data)
SpecificData
.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>
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.