com.bigdata.journal
Class CommitRecordSerializer

java.lang.Object
  extended by com.bigdata.journal.CommitRecordSerializer

public class CommitRecordSerializer
extends Object

A helper class for (de-)serializing the root addresses.

Version:
$Id: CommitRecordSerializer.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson
TODO:
we could use run length encoding to write only the used roots.

Field Summary
static CommitRecordSerializer INSTANCE
           
static int VERSION0
           
 
Constructor Summary
CommitRecordSerializer()
           
 
Method Summary
 ICommitRecord deserialize(ByteBuffer buf)
           
 byte[] serialize(ICommitRecord commitRecord)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION0

public static final int VERSION0
See Also:
Constant Field Values

INSTANCE

public static final transient CommitRecordSerializer INSTANCE
Constructor Detail

CommitRecordSerializer

public CommitRecordSerializer()
Method Detail

serialize

public byte[] serialize(ICommitRecord commitRecord)

deserialize

public ICommitRecord deserialize(ByteBuffer buf)


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