|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.btree.DefaultTupleSerializer<Void,TPS>
com.bigdata.sparse.TPSTupleSerializer
public class TPSTupleSerializer
Helper class for (de-)serializing logical rows for AtomicRowFilter.
| Constructor Summary | |
|---|---|
TPSTupleSerializer()
De-serializator ctor. |
|
TPSTupleSerializer(IKeyBuilderFactory keyBuilderFactory)
|
|
| Method Summary | |
|---|---|
TPS |
deserialize(ITuple tuple)
De-serializes an object from the value stored
in the tuple (ignores the key stored in the tuple). |
Void |
deserializeKey(ITuple tuple)
You can get the Schema and the primary key from
deserialize(ITuple). |
static ITupleSerializer<Void,TPS> |
newInstance()
|
byte[] |
serializeKey(Object obj)
This method is not used since we do not store TPS objects
directly in a BTree. |
byte[] |
serializeVal(TPS obj)
Serialize the persistent state of the object (the value stored in the index under the key for that object). |
| Methods inherited from class com.bigdata.btree.DefaultTupleSerializer |
|---|
getDefaultKeyBuilderFactory, getDefaultLeafKeysCoder, getDefaultValuesCoder, getKeyBuilder, getLeafKeysCoder, getLeafValuesCoder, 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 TPSTupleSerializer()
public TPSTupleSerializer(IKeyBuilderFactory keyBuilderFactory)
| Method Detail |
|---|
public static ITupleSerializer<Void,TPS> newInstance()
public byte[] serializeKey(Object obj)
TPS objects
directly in a BTree.
serializeKey in interface ITupleSerializer<Void,TPS>serializeKey in class DefaultTupleSerializer<Void,TPS>obj - A object (MAY NOT be null).
null (
null keys are not allowed into an index).
UnsupportedOperationException - always.public byte[] serializeVal(TPS obj)
ITupleSerializerIAutoboxBTree.insert(Object, Object) and friends to
convert the value object into an byte[].
obj - An object (MAY NOT be null).
null if no value will be stored under the
serialized key.public TPS deserialize(ITuple tuple)
DefaultTupleSerializervalue stored
in the tuple (ignores the key stored in the tuple).
deserialize in interface ITupleSerializer<Void,TPS>deserialize in class DefaultTupleSerializer<Void,TPS>tuple - The tuple.
public Void deserializeKey(ITuple tuple)
Schema and the primary key from
deserialize(ITuple).
deserializeKey in interface ITupleSerializer<Void,TPS>deserializeKey in class DefaultTupleSerializer<Void,TPS>UnsupportedOperationException - always.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||