com.bigdata.io
Interface IRecordSerializer<T>

All Superinterfaces:
Serializable

public interface IRecordSerializer<T>
extends Serializable

An abstraction for serializing and de-serializing objects as byte[]s.

Note: Some serializers use the convention that a null will be de-serialized as a null. This convention makes it easy to de-serialize the value and then test to see whether or not the value was in fact found in the index.

Version:
$Id: IRecordSerializer.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson
See Also:
SerializerUtil, IStreamSerializer
TODO:
reconcile ISerializer, reconsider IStoreSerializer (can we drop it?)

Method Summary
 T deserialize(byte[] data)
          De-serialize an object.
 byte[] serialize(T obj)
          Serialize an object.
 

Method Detail

serialize

byte[] serialize(T obj)
Serialize an object.

Parameters:
obj - A object.
Returns:
A byte[] that is the serialization of that object.

deserialize

T deserialize(byte[] data)
De-serialize an object.

Parameters:
data - The data.
Returns:
The object for that data.


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.