public static class Name2Addr.Name2AddrTupleSerializer extends DefaultTupleSerializer<String,Name2Addr.Entry>
Name2Addr
.Constructor and Description |
---|
Name2Addr.Name2AddrTupleSerializer()
De-serialization ctor.
|
Name2Addr.Name2AddrTupleSerializer(IKeyBuilderFactory keyBuilderFactory)
Ctor when creating a new instance.
|
Modifier and Type | Method and Description |
---|---|
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) |
deserializeKey, getDefaultKeyBuilderFactory, getDefaultLeafKeysCoder, getDefaultValuesCoder, getKeyBuilder, getLeafKeysCoder, getLeafValuesCoder, getPrimaryKeyBuilder, newInstance, setLeafKeysCoder, setLeafValuesCoder, toString
public Name2Addr.Name2AddrTupleSerializer()
public Name2Addr.Name2AddrTupleSerializer(IKeyBuilderFactory keyBuilderFactory)
keyBuilderFactory
- 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)
DefaultTupleSerializer
value
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 Externalizable
readExternal
in class DefaultTupleSerializer<String,Name2Addr.Entry>
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class DefaultTupleSerializer<String,Name2Addr.Entry>
IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.