|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.btree.DefaultTupleSerializer<Long,CommitRecordIndex.Entry>
com.bigdata.journal.CommitRecordIndex.CommitRecordIndexTupleSerializer
public static class CommitRecordIndex.CommitRecordIndexTupleSerializer
Encapsulates key and value formation for the CommitRecordIndex.
| Constructor Summary | |
|---|---|
CommitRecordIndex.CommitRecordIndexTupleSerializer()
De-serialization ctor. |
|
CommitRecordIndex.CommitRecordIndexTupleSerializer(IKeyBuilderFactory keyBuilderFactory)
Ctor when creating a new instance. |
|
| Method Summary | |
|---|---|
CommitRecordIndex.Entry |
deserialize(ITuple tuple)
De-serializes an object from the value stored
in the tuple (ignores the key stored in the tuple). |
Long |
deserializeKey(ITuple tuple)
Decodes the key as a commit time. |
byte[] |
serializeKey(Object obj)
Return the unsigned byte[] key for a commit time. |
byte[] |
serializeVal(CommitRecordIndex.Entry entry)
Return the byte[] value an CommitRecordIndex.Entry. |
| Methods inherited from class com.bigdata.btree.DefaultTupleSerializer |
|---|
getDefaultKeyBuilderFactory, getDefaultLeafKeysCoder, getDefaultValuesCoder, getKeyBuilder, getLeafKeysCoder, getLeafValuesCoder, newInstance, readExternal, serializeVal, setLeafKeysCoder, setLeafValuesCoder, toString, writeExternal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CommitRecordIndex.CommitRecordIndexTupleSerializer()
public CommitRecordIndex.CommitRecordIndexTupleSerializer(IKeyBuilderFactory keyBuilderFactory)
keyBuilderFactory - | Method Detail |
|---|
public Long deserializeKey(ITuple tuple)
deserializeKey in interface ITupleSerializer<Long,CommitRecordIndex.Entry>deserializeKey in class DefaultTupleSerializer<Long,CommitRecordIndex.Entry>public byte[] serializeKey(Object obj)
serializeKey in interface ITupleSerializer<Long,CommitRecordIndex.Entry>serializeKey in class DefaultTupleSerializer<Long,CommitRecordIndex.Entry>obj - A commit time.
null (
null keys are not allowed into an index).public byte[] serializeVal(CommitRecordIndex.Entry entry)
CommitRecordIndex.Entry.
entry - An Entry.
null if no value will be stored under the
serialized key.public CommitRecordIndex.Entry deserialize(ITuple tuple)
DefaultTupleSerializervalue stored
in the tuple (ignores the key stored in the tuple).
deserialize in interface ITupleSerializer<Long,CommitRecordIndex.Entry>deserialize in class DefaultTupleSerializer<Long,CommitRecordIndex.Entry>tuple - The tuple.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||