|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.btree.DefaultTupleSerializer<Object,CounterSetBTree.Entry>
com.bigdata.counters.store.CounterSetBTree.CounterSetBTreeTupleSerializer
protected static class CounterSetBTree.CounterSetBTreeTupleSerializer
Encapsulates key and value formation. The key is formed from the minutes, the path, and the timestamp. The value is the performance counter value for a specific timestamp.
| Constructor Summary | |
|---|---|
CounterSetBTree.CounterSetBTreeTupleSerializer()
De-serialization ctor. |
|
CounterSetBTree.CounterSetBTreeTupleSerializer(IKeyBuilderFactory keyBuilderFactory)
Ctor when creating a new instance. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.bigdata.btree.DefaultTupleSerializer |
|---|
deserializeKey, getDefaultKeyBuilderFactory, getDefaultLeafKeysCoder, getDefaultValuesCoder, getKeyBuilder, getLeafKeysCoder, getLeafValuesCoder, newInstance, readExternal, setLeafKeysCoder, setLeafValuesCoder, toString, writeExternal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CounterSetBTree.CounterSetBTreeTupleSerializer()
public CounterSetBTree.CounterSetBTreeTupleSerializer(IKeyBuilderFactory keyBuilderFactory)
keyBuilderFactory - | Method Detail |
|---|
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)
DefaultTupleSerializervalue 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||