public class TPSTupleSerializer extends DefaultTupleSerializer<Void,TPS>
AtomicRowFilter
.Constructor and Description |
---|
TPSTupleSerializer()
De-serializator ctor.
|
TPSTupleSerializer(IKeyBuilderFactory keyBuilderFactory) |
Modifier and Type | Method and Description |
---|---|
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() |
void |
readExternal(ObjectInput in) |
byte[] |
serializeKey(Object obj)
|
byte[] |
serializeVal(TPS obj)
Serializes the object as a byte[] using Java default serialization.
|
void |
writeExternal(ObjectOutput out) |
getDefaultKeyBuilderFactory, getDefaultLeafKeysCoder, getDefaultValuesCoder, getKeyBuilder, getLeafKeysCoder, getLeafValuesCoder, getPrimaryKeyBuilder, setLeafKeysCoder, setLeafValuesCoder, toString
public TPSTupleSerializer()
public TPSTupleSerializer(IKeyBuilderFactory keyBuilderFactory)
public static ITupleSerializer<Void,TPS> newInstance()
public byte[] serializeKey(Object obj)
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)
DefaultTupleSerializer
serializeVal
in interface ITupleSerializer<Void,TPS>
serializeVal
in class DefaultTupleSerializer<Void,TPS>
obj
- The object to be serialized (MAY be null
).null
if the reference is null
.public TPS deserialize(ITuple tuple)
DefaultTupleSerializer
value
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.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class DefaultTupleSerializer<Void,TPS>
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class DefaultTupleSerializer<Void,TPS>
IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.