voldemort.serialization
Class SlopSerializer

java.lang.Object
  extended by voldemort.serialization.SlopSerializer
All Implemented Interfaces:
Serializer<Slop>

public class SlopSerializer
extends java.lang.Object
implements Serializer<Slop>

A Serializer for writing Slops


Constructor Summary
SlopSerializer()
           
 
Method Summary
 byte[] toBytes(Slop slop)
          Construct an array of bytes from the given object
 Slop toObject(byte[] bytes)
          Create an object from an array of bytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlopSerializer

public SlopSerializer()
Method Detail

toBytes

public byte[] toBytes(Slop slop)
Description copied from interface: Serializer
Construct an array of bytes from the given object

Specified by:
toBytes in interface Serializer<Slop>
Parameters:
slop - The object
Returns:
The bytes taken from the object

toObject

public Slop toObject(byte[] bytes)
Description copied from interface: Serializer
Create an object from an array of bytes

Specified by:
toObject in interface Serializer<Slop>
Parameters:
bytes - An array of bytes with the objects data
Returns:
A java object serialzed from the bytes


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu