protected static class TxId2CommitTimeIndex.TupleSerializer extends DefaultTupleSerializer<Long,ITxState0>
| Constructor and Description |
|---|
TxId2CommitTimeIndex.TupleSerializer()
De-serialization ctor.
|
TxId2CommitTimeIndex.TupleSerializer(IKeyBuilderFactory keyBuilderFactory)
Ctor when creating a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ITxState0 |
deserialize(ITuple tuple)
Decodes the value as a commit time.
|
Long |
deserializeKey(ITuple tuple)
Decodes the key as a transaction identifier.
|
void |
readExternal(ObjectInput in) |
byte[] |
serializeKey(Object obj)
Serialize a facet of an object's state that places the object into the
total sort order for the index.
|
byte[] |
serializeVal(ITxState0 val)
Serializes the object as a byte[] using Java default serialization.
|
void |
writeExternal(ObjectOutput out) |
getDefaultKeyBuilderFactory, getDefaultLeafKeysCoder, getDefaultValuesCoder, getKeyBuilder, getLeafKeysCoder, getLeafValuesCoder, getPrimaryKeyBuilder, newInstance, setLeafKeysCoder, setLeafValuesCoder, toStringpublic TxId2CommitTimeIndex.TupleSerializer()
public TxId2CommitTimeIndex.TupleSerializer(IKeyBuilderFactory keyBuilderFactory)
keyBuilderFactory - public byte[] serializeKey(Object obj)
ITupleSerializerIAutoboxBTree.insert(Object, Object) and friends to convert the
key object into an unsigned variable
length byte[].
Note: This handles the conversion between an object and the unsigned variable length byte[] representation of that object which determines its place within the total index order. Since this transform imposes the total order of the index, different techniques are applied here than are applied to the serialization of the index values.
serializeKey in interface ITupleSerializer<Long,ITxState0>serializeKey in class DefaultTupleSerializer<Long,ITxState0>obj - A object (MAY NOT be null).null (
null keys are not allowed into an index).public Long deserializeKey(ITuple tuple)
deserializeKey in interface ITupleSerializer<Long,ITxState0>deserializeKey in class DefaultTupleSerializer<Long,ITxState0>public ITxState0 deserialize(ITuple tuple)
deserialize in interface ITupleSerializer<Long,ITxState0>deserialize in class DefaultTupleSerializer<Long,ITxState0>tuple - The tuple.public byte[] serializeVal(ITxState0 val)
DefaultTupleSerializerserializeVal in interface ITupleSerializer<Long,ITxState0>serializeVal in class DefaultTupleSerializer<Long,ITxState0>val - The object to be serialized (MAY be null).null if the reference is null.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class DefaultTupleSerializer<Long,ITxState0>IOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class DefaultTupleSerializer<Long,ITxState0>IOExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.