org.hypergraphdb.peer
Class Subgraph
java.lang.Object
org.hypergraphdb.peer.Subgraph
public class Subgraph
- extends java.lang.Object
- Author:
- Cipri Costa
Class that will expose a HGDB subgraph in an form that can be iterated. Used mainly for
serializing atoms to a byte array and sending them as part of a message.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Subgraph
public Subgraph(HyperGraph graph,
HGPersistentHandle handle)
Subgraph
public Subgraph()
iterator
public java.util.Iterator<Pair<HGPersistentHandle,java.lang.Object>> iterator()
addToBuffer
public void addToBuffer(HGPersistentHandle handle,
java.lang.Object value)
getHandle
public HGPersistentHandle getHandle()
setHandle
public void setHandle(HGPersistentHandle handle)