public class SpecificDatumWriter<T> extends GenericDatumWriter<T>
DatumWriter
for generated Java classes.Modifier | Constructor and Description |
---|---|
|
SpecificDatumWriter() |
|
SpecificDatumWriter(Class<T> c) |
|
SpecificDatumWriter(Schema schema) |
protected |
SpecificDatumWriter(Schema root,
SpecificData specificData) |
protected |
SpecificDatumWriter(SpecificData specificData) |
Modifier and Type | Method and Description |
---|---|
protected void |
writeEnum(Schema schema,
Object datum,
Encoder out)
Called to write an enum value.
|
getArrayElements, getArraySize, getData, getMapEntries, getMapSize, npe, resolveUnion, setSchema, write, write, writeArray, writeBytes, writeFixed, writeMap, writeRecord, writeString, writeString
public SpecificDatumWriter()
public SpecificDatumWriter(Schema schema)
protected SpecificDatumWriter(Schema root, SpecificData specificData)
protected SpecificDatumWriter(SpecificData specificData)
protected void writeEnum(Schema schema, Object datum, Encoder out) throws IOException
GenericDatumWriter
writeEnum
in class GenericDatumWriter<T>
IOException
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.