This project has retired. For details please refer to its Attic page.
PersistentSerializer (Apache Gora 0.2 API)

org.apache.gora.mapreduce
Class PersistentSerializer

java.lang.Object
  extended by org.apache.gora.mapreduce.PersistentSerializer
All Implemented Interfaces:
org.apache.hadoop.io.serializer.Serializer<Persistent>

public class PersistentSerializer
extends Object
implements org.apache.hadoop.io.serializer.Serializer<Persistent>

Hadoop serializer using PersistentDatumWriter with BinaryEncoder.


Constructor Summary
PersistentSerializer()
           
 
Method Summary
 void close()
           
 void open(OutputStream out)
           
 void serialize(Persistent persistent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentSerializer

public PersistentSerializer()
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface org.apache.hadoop.io.serializer.Serializer<Persistent>
Throws:
IOException

open

public void open(OutputStream out)
          throws IOException
Specified by:
open in interface org.apache.hadoop.io.serializer.Serializer<Persistent>
Throws:
IOException

serialize

public void serialize(Persistent persistent)
               throws IOException
Specified by:
serialize in interface org.apache.hadoop.io.serializer.Serializer<Persistent>
Throws:
IOException


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.