java.lang.Object
org.apache.jena.tdb1.lib.NodeLib
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.jena.graph.Nodedecode(ByteBuffer bb) Decode a node - it is better to use fetchDecode which may avoid an additional copy in getting the node from the ObjectFile.static ByteBufferencode(org.apache.jena.graph.Node node) Encode a node - it is better to use encodeStore which may avoid an additional copy in getting the node into the ObjectFile and may avoid short-term byte buffer allocation.static longencodeStore(org.apache.jena.graph.Node node, ObjectFile file) Encode and write aNodeto theObjectFile.static longencodeStore(org.apache.jena.graph.Node node, ObjectFile file, ByteBuffer bb) Encode and write aNodeto theObjectFile.static org.apache.jena.graph.NodefetchDecode(long id, ObjectFile file) Read and decode aNodefrom theObjectFile.static NodeIdstatic Hashhash(org.apache.jena.graph.Node n) static Iterator<org.apache.jena.graph.Node>static voidstatic org.apache.jena.graph.NodetermOrAny(org.apache.jena.graph.Node node)
-
Constructor Details
-
NodeLib
public NodeLib()
-
-
Method Details
-
encodeStore
Encode and write aNodeto theObjectFile. Returns the location, suitable for use withfetchDecode(long, org.apache.jena.tdb1.base.objectfile.ObjectFile). -
encodeStore
Encode and write aNodeto theObjectFile. Uses the givenByteBufferfor encoding space if possible. Returns the location, suitable for use withfetchDecode(long, org.apache.jena.tdb1.base.objectfile.ObjectFile). -
fetchDecode
Read and decode aNodefrom theObjectFile. Theidmust have originally been generated byencodeStore(org.apache.jena.graph.Node, org.apache.jena.tdb1.base.objectfile.ObjectFile). -
encode
Encode a node - it is better to use encodeStore which may avoid an additional copy in getting the node into the ObjectFile and may avoid short-term byte buffer allocation. -
decode
Decode a node - it is better to use fetchDecode which may avoid an additional copy in getting the node from the ObjectFile. -
hash
-
setHash
-
getNodeId
-
termOrAny
public static org.apache.jena.graph.Node termOrAny(org.apache.jena.graph.Node node) -
nodes
-