This project has retired. For details please refer to its
Attic page.
PersistentDatumWriter (Apache Gora 0.2 API)
org.apache.gora.avro
Class PersistentDatumWriter<T extends Persistent>
java.lang.Object
org.apache.avro.generic.GenericDatumWriter<T>
org.apache.avro.specific.SpecificDatumWriter<T>
org.apache.gora.avro.PersistentDatumWriter<T>
- All Implemented Interfaces:
- org.apache.avro.io.DatumWriter<T>
public class PersistentDatumWriter<T extends Persistent>
- extends org.apache.avro.specific.SpecificDatumWriter<T>
PersistentDatumWriter writes, fields' dirty and readable information.
Method Summary |
void |
setPersistent(T persistent)
|
void |
write(org.apache.avro.Schema schema,
Object datum,
org.apache.avro.io.Encoder out)
|
protected void |
writeMap(org.apache.avro.Schema schema,
Object datum,
org.apache.avro.io.Encoder out)
|
protected void |
writeRecord(org.apache.avro.Schema schema,
Object datum,
org.apache.avro.io.Encoder out)
|
Methods inherited from class org.apache.avro.specific.SpecificDatumWriter |
writeEnum |
Methods inherited from class org.apache.avro.generic.GenericDatumWriter |
getArrayElements, getArraySize, getField, getMapEntries, getMapSize, setSchema, write, writeArray, writeBytes, writeFixed, writeString, writeString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistentDatumWriter
public PersistentDatumWriter()
PersistentDatumWriter
public PersistentDatumWriter(org.apache.avro.Schema schema,
boolean writeDirtyBits)
setPersistent
public void setPersistent(T persistent)
write
public void write(org.apache.avro.Schema schema,
Object datum,
org.apache.avro.io.Encoder out)
throws IOException
- Overrides:
write
in class org.apache.avro.generic.GenericDatumWriter<T extends Persistent>
- Throws:
IOException
writeRecord
protected void writeRecord(org.apache.avro.Schema schema,
Object datum,
org.apache.avro.io.Encoder out)
throws IOException
- Overrides:
writeRecord
in class org.apache.avro.generic.GenericDatumWriter<T extends Persistent>
- Throws:
IOException
writeMap
protected void writeMap(org.apache.avro.Schema schema,
Object datum,
org.apache.avro.io.Encoder out)
throws IOException
- Overrides:
writeMap
in class org.apache.avro.generic.GenericDatumWriter<T extends Persistent>
- Throws:
IOException
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.