|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.btree.DefaultTupleSerializer<String,Name2Addr.Entry>
com.bigdata.journal.Name2Addr.Name2AddrTupleSerializer
public static class Name2Addr.Name2AddrTupleSerializer
Encapsulates key and value formation for Name2Addr.
| Constructor Summary | |
|---|---|
Name2Addr.Name2AddrTupleSerializer()
De-serialization ctor. |
|
Name2Addr.Name2AddrTupleSerializer(IKeyBuilderFactory keyBuilderFactory)
Ctor when creating a new instance. |
|
| Method Summary | |
|---|---|
Name2Addr.Entry |
deserialize(ITuple tuple)
De-serializes an object from the value stored
in the tuple (ignores the key stored in the tuple). |
void |
readExternal(ObjectInput in)
|
byte[] |
serializeKey(Object obj)
Return the unsigned byte[] key for an index name. |
byte[] |
serializeVal(Name2Addr.Entry entry)
Return the byte[] value an Name2Addr.Entry. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class com.bigdata.btree.DefaultTupleSerializer |
|---|
deserializeKey, getDefaultKeyBuilderFactory, getDefaultLeafKeysCoder, getDefaultValuesCoder, getKeyBuilder, getLeafKeysCoder, getLeafValuesCoder, newInstance, setLeafKeysCoder, setLeafValuesCoder, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Name2Addr.Name2AddrTupleSerializer()
public Name2Addr.Name2AddrTupleSerializer(IKeyBuilderFactory keyBuilderFactory)
keyBuilderFactory - | Method Detail |
|---|
public byte[] serializeKey(Object obj)
serializeKey in interface ITupleSerializer<String,Name2Addr.Entry>serializeKey in class DefaultTupleSerializer<String,Name2Addr.Entry>obj - The name of an index.
null (
null keys are not allowed into an index).public byte[] serializeVal(Name2Addr.Entry entry)
Name2Addr.Entry.
serializeVal in interface ITupleSerializer<String,Name2Addr.Entry>serializeVal in class DefaultTupleSerializer<String,Name2Addr.Entry>entry - An Entry.
null if the reference is null.public Name2Addr.Entry deserialize(ITuple tuple)
DefaultTupleSerializervalue stored
in the tuple (ignores the key stored in the tuple).
deserialize in interface ITupleSerializer<String,Name2Addr.Entry>deserialize in class DefaultTupleSerializer<String,Name2Addr.Entry>tuple - The tuple.
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class DefaultTupleSerializer<String,Name2Addr.Entry>IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class DefaultTupleSerializer<String,Name2Addr.Entry>IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||