org.jrdf.graph.index.nodepool.mem
Interface NodePoolMem

All Superinterfaces:
NodePool
All Known Implementing Classes:
NodePoolMemImpl

public interface NodePoolMem
extends NodePool

An extension of NodePools that handles in memory nodes.

Version:
$Id: NodePoolMem.java 1045 2007-01-05 04:56:09Z newmana $
Author:
Andrew Newman

Method Summary
 Long getNextNodeId()
          Returns the current next node Id increments it by one.
 Collection<Node> getNodePoolValues()
          Returns all the nodes in the node pool.
 void registerNode(MemNode node)
          Adds a node that was not created by this pool but still uses the MemNode interface.
 
Methods inherited from interface org.jrdf.graph.index.nodepool.NodePool
getNodeById, getNodeIdByString, localize
 

Method Detail

registerNode

void registerNode(MemNode node)
Adds a node that was not created by this pool but still uses the MemNode interface.

Parameters:
node - The node to add.
Throws:
IllegalArgumentException - The node conflicts with one already in use.

getNodePoolValues

Collection<Node> getNodePoolValues()
Returns all the nodes in the node pool.

Returns:
The node pool.

getNextNodeId

Long getNextNodeId()
Returns the current next node Id increments it by one.

Returns:
the current next node Id.