org.hypergraphdb.peer
Class Subgraph

java.lang.Object
  extended by 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.

Nested Class Summary
 class Subgraph.SubgraphIterator
           
 
Constructor Summary
Subgraph()
           
Subgraph(HyperGraph graph, HGPersistentHandle handle)
           
 
Method Summary
 void addToBuffer(HGPersistentHandle handle, java.lang.Object value)
           
 HGPersistentHandle getHandle()
           
 java.util.Iterator<Pair<HGPersistentHandle,java.lang.Object>> iterator()
           
 void setHandle(HGPersistentHandle handle)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Subgraph

public Subgraph(HyperGraph graph,
                HGPersistentHandle handle)

Subgraph

public Subgraph()
Method Detail

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)