public class BlobsTupleSerializer extends DefaultTupleSerializer<IV,BigdataValue>
BlobIV
s. The values are BigdataValue
s serialized using the
BigdataValueSerializer
. Large values are converted to raw records
and must be materialized before they can be deserialized.Constructor and Description |
---|
BlobsTupleSerializer()
De-serialization ctor.
|
BlobsTupleSerializer(String namespace,
BigdataValueFactory valueFactory) |
Modifier and Type | Method and Description |
---|---|
BigdataValue |
deserialize(ITuple tuple)
De-serializes the
ITuple as a BigdataValue , including
the term identifier extracted from the unsigned byte[] key, and sets
the appropriate BigdataValueFactoryImpl reference on that object. |
IV |
deserializeKey(ITuple tuple)
Decodes the key to a
BlobIV . |
void |
readExternal(ObjectInput in) |
byte[] |
serializeKey(Object obj)
Return the unsigned byte[] key for a
BlobIV . |
byte[] |
serializeVal(BigdataValue obj)
Return the byte[] value, which is the serialization of an RDF
Value using the BigdataValueSerializer . |
void |
writeExternal(ObjectOutput out) |
getDefaultKeyBuilderFactory, getDefaultLeafKeysCoder, getDefaultValuesCoder, getKeyBuilder, getLeafKeysCoder, getLeafValuesCoder, getPrimaryKeyBuilder, newInstance, setLeafKeysCoder, setLeafValuesCoder, toString
public BlobsTupleSerializer()
public BlobsTupleSerializer(String namespace, BigdataValueFactory valueFactory)
keyBuilderFactory
- A factory that does not support unicode and has an
initialCapacity of .public IV deserializeKey(ITuple tuple)
BlobIV
.deserializeKey
in interface ITupleSerializer<IV,BigdataValue>
deserializeKey
in class DefaultTupleSerializer<IV,BigdataValue>
key
- The key for an entry in the TERMS index.BlobIV
.public byte[] serializeKey(Object obj)
BlobIV
.serializeKey
in interface ITupleSerializer<IV,BigdataValue>
serializeKey
in class DefaultTupleSerializer<IV,BigdataValue>
obj
- The BlobIV
.null
(
null
keys are not allowed into an index).public byte[] serializeVal(BigdataValue obj)
Value
using the BigdataValueSerializer
.serializeVal
in interface ITupleSerializer<IV,BigdataValue>
serializeVal
in class DefaultTupleSerializer<IV,BigdataValue>
obj
- An RDF Value
.null
if the reference is null
.public BigdataValue deserialize(ITuple tuple)
ITuple
as a BigdataValue
, including
the term identifier extracted from the unsigned byte[] key, and sets
the appropriate BigdataValueFactoryImpl
reference on that object.deserialize
in interface ITupleSerializer<IV,BigdataValue>
deserialize
in class DefaultTupleSerializer<IV,BigdataValue>
tuple
- The tuple.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class DefaultTupleSerializer<IV,BigdataValue>
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class DefaultTupleSerializer<IV,BigdataValue>
IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.