protected static class CounterSetBTree.CounterSetBTreeTupleSerializer extends DefaultTupleSerializer<Object,CounterSetBTree.Entry>
Constructor and Description |
---|
CounterSetBTree.CounterSetBTreeTupleSerializer()
De-serialization ctor.
|
CounterSetBTree.CounterSetBTreeTupleSerializer(IKeyBuilderFactory keyBuilderFactory)
Ctor when creating a new instance.
|
Modifier and Type | Method and Description |
---|---|
CounterSetBTree.Entry |
deserialize(ITuple tuple)
De-serializes an object from the
value stored
in the tuple (ignores the key stored in the tuple). |
byte[] |
serializeKey(CounterSetBTree.Entry e) |
byte[] |
serializeKey(ICounter c) |
byte[] |
serializeKey(Object obj)
Return the unsigned byte[] key.
|
byte[] |
serializeVal(CounterSetBTree.Entry value)
Overridden to serialize just
CounterSetBTree.Entry.value as the value
component of the B+Tree tuple. |
deserializeKey, getDefaultKeyBuilderFactory, getDefaultLeafKeysCoder, getDefaultValuesCoder, getKeyBuilder, getLeafKeysCoder, getLeafValuesCoder, getPrimaryKeyBuilder, newInstance, readExternal, setLeafKeysCoder, setLeafValuesCoder, toString, writeExternal
public CounterSetBTree.CounterSetBTreeTupleSerializer()
public CounterSetBTree.CounterSetBTreeTupleSerializer(IKeyBuilderFactory keyBuilderFactory)
keyBuilderFactory
- public byte[] serializeKey(Object obj)
serializeKey
in interface ITupleSerializer<Object,CounterSetBTree.Entry>
serializeKey
in class DefaultTupleSerializer<Object,CounterSetBTree.Entry>
obj
- An ICounter
or CounterSetBTree.Entry
.null
(
null
keys are not allowed into an index).public byte[] serializeKey(ICounter c)
public byte[] serializeKey(CounterSetBTree.Entry e)
public byte[] serializeVal(CounterSetBTree.Entry value)
CounterSetBTree.Entry.value
as the value
component of the B+Tree tuple.serializeVal
in interface ITupleSerializer<Object,CounterSetBTree.Entry>
serializeVal
in class DefaultTupleSerializer<Object,CounterSetBTree.Entry>
value
- The object to be serialized (MAY be null
).null
if the reference is null
.public CounterSetBTree.Entry deserialize(ITuple tuple)
DefaultTupleSerializer
value
stored
in the tuple (ignores the key stored in the tuple).deserialize
in interface ITupleSerializer<Object,CounterSetBTree.Entry>
deserialize
in class DefaultTupleSerializer<Object,CounterSetBTree.Entry>
tuple
- The tuple.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.