public class ThriftConvert extends Object
StreamRDF2Thrift and Thrift2StreamRDF
for ways to convert as streams (they recycle intermediate objects).StreamRDF2Thrift,
Thrift2StreamRDF| Constructor and Description |
|---|
ThriftConvert() |
| Modifier and Type | Method and Description |
|---|---|
static RDF_Term |
convert(Node node,
boolean allowValues) |
static RDF_Term |
convert(Node node,
PrefixMap pmap,
boolean allowValues) |
static RDF_Quad |
convert(Quad quad,
boolean allowValues) |
static RDF_Quad |
convert(Quad quad,
PrefixMap pmap,
boolean allowValues) |
static Quad |
convert(RDF_Quad quad) |
static Quad |
convert(RDF_Quad rq,
PrefixMap pmap) |
static Node |
convert(RDF_Term term)
|
static Node |
convert(RDF_Term term,
PrefixMap pmap)
|
static Triple |
convert(RDF_Triple triple) |
static Triple |
convert(RDF_Triple rt,
PrefixMap pmap) |
static RDF_Triple |
convert(Triple triple,
boolean allowValues) |
static RDF_Triple |
convert(Triple triple,
PrefixMap pmap,
boolean allowValues) |
static RDF_Term |
termFromBytes(byte[] bytes)
Deserialize from a byte array into an
RDF_Term. |
static void |
termFromBytes(RDF_Term term,
byte[] bytes)
Deserialize from a byte array into an
RDF_Term. |
static byte[] |
termToBytes(RDF_Term term)
Serialize the
RDF_Term into a byte array. |
static void |
toThrift(Node node,
PrefixMap pmap,
RDF_Term term,
boolean allowValues)
|
static void |
toThrift(Node node,
RDF_Term term)
|
static void |
toThrift(Node node,
RDF_Term term,
boolean allowValues)
|
static boolean |
toThriftValue(Node node,
RDF_Term term)
Attempt to encode a node by value (integer, decimal, double) into an RDF_term.
|
public static boolean toThriftValue(Node node, RDF_Term term)
node - term - public static Triple convert(RDF_Triple triple)
public static Triple convert(RDF_Triple rt, PrefixMap pmap)
public static RDF_Triple convert(Triple triple, boolean allowValues)
public static RDF_Triple convert(Triple triple, PrefixMap pmap, boolean allowValues)
public static byte[] termToBytes(RDF_Term term)
RDF_Term into a byte array.
Where possible, to is better to serialize into a stream, directly using term.write(TProtocol).
public static RDF_Term termFromBytes(byte[] bytes)
RDF_Term.
Where possible, to is better to deserialize from a stream, directly using term.read(TProtocol).
Licenced under the Apache License, Version 2.0