public final class SerializerAvro extends Object
Constructor and Description |
---|
SerializerAvro() |
SerializerAvro(Dictionary<org.openrdf.model.URI> dictionary) |
SerializerAvro(String fileName) |
Modifier and Type | Method and Description |
---|---|
byte[] |
compressURI(org.openrdf.model.URI uri) |
org.openrdf.model.URI |
expandURI(byte[] bytes) |
Object |
fromBytes(byte[] bytes) |
Record |
fromBytes(byte[] bytes,
Set<org.openrdf.model.URI> propertiesToDeserialize) |
Object |
fromStream(InputStream stream) |
Record |
fromStream(InputStream stream,
Set<org.openrdf.model.URI> propertiesToDeserialize) |
Dictionary<org.openrdf.model.URI> |
getDictionary() |
byte[] |
toBytes(Object object) |
byte[] |
toBytes(Record object,
Set<org.openrdf.model.URI> propertiesToSerialize) |
void |
toStream(OutputStream stream,
Object object) |
void |
toStream(OutputStream stream,
Record object,
Set<org.openrdf.model.URI> propertiesToSerialize) |
public SerializerAvro()
public SerializerAvro(@Nullable Dictionary<org.openrdf.model.URI> dictionary)
public SerializerAvro(String fileName) throws IOException
IOException
public Dictionary<org.openrdf.model.URI> getDictionary()
public byte[] compressURI(org.openrdf.model.URI uri)
public org.openrdf.model.URI expandURI(byte[] bytes)
public byte[] toBytes(Object object)
public byte[] toBytes(Record object, @Nullable Set<org.openrdf.model.URI> propertiesToSerialize)
public Object fromBytes(byte[] bytes)
public Record fromBytes(byte[] bytes, @Nullable Set<org.openrdf.model.URI> propertiesToDeserialize)
public void toStream(OutputStream stream, Object object) throws IOException
IOException
public void toStream(OutputStream stream, Record object, @Nullable Set<org.openrdf.model.URI> propertiesToSerialize) throws IOException
IOException
public Object fromStream(InputStream stream) throws IOException
IOException
public Record fromStream(InputStream stream, @Nullable Set<org.openrdf.model.URI> propertiesToDeserialize) throws IOException
IOException
Copyright © 2015–2016 FBK-irst. All rights reserved.