|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jrdf.graph.index.nodepool.mem.NodePoolMemImpl
public final class NodePoolMemImpl
Stuff goes in here.
| Constructor Summary | |
|---|---|
NodePoolMemImpl()
|
|
NodePoolMemImpl(Map<Long,Node> newNodePool,
Map<String,Long> newStringPool)
|
|
| Method Summary | |
|---|---|
Long |
getNextNodeId()
Returns the current next node Id increments it by one. |
Node |
getNodeById(Long id)
Package method to find a node in the node pool by its id. |
Long |
getNodeIdByString(String str)
Package method to find a node id based on its string representation. |
Collection<Node> |
getNodePoolValues()
Returns all the nodes in the node pool. |
Long[] |
localize(Node first,
Node second,
Node third)
Converts a globalized set of triple objects to an array of longs. |
void |
registerNode(MemNode node)
Adds a node that was not created by this pool but still uses the MemNode interface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodePoolMemImpl()
public NodePoolMemImpl(Map<Long,Node> newNodePool,
Map<String,Long> newStringPool)
| Method Detail |
|---|
public Node getNodeById(Long id)
NodePool
getNodeById in interface NodePoolid - The id of the node to search for.
public Long getNodeIdByString(String str)
NodePool
getNodeIdByString in interface NodePoolstr - The string representation of a node.
public void registerNode(MemNode node)
NodePoolMem
registerNode in interface NodePoolMemnode - The node to add.public Collection<Node> getNodePoolValues()
NodePoolMem
getNodePoolValues in interface NodePoolMempublic Long getNextNodeId()
NodePoolMem
getNextNodeId in interface NodePoolMem
public Long[] localize(Node first,
Node second,
Node third)
throws GraphException
NodePool
localize in interface NodePoolfirst - The first node.second - The second node.third - The last node.
GraphException - If there was an error adding the statement.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||