|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jrdf.graph.local.index.nodepool.NodePoolImpl
public final class NodePoolImpl
Constructor Summary | |
---|---|
NodePoolImpl(NodeTypePool newNodeTypePool,
MapFactory newMapFactory)
|
Method Summary | |
---|---|
void |
clear()
Removes all entries from the nodepool. |
ClosableIterator<BlankNode> |
getBlankNodeIterator()
|
Long |
getNewNodeId()
Returns a new node id. |
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. |
List<Map<Long,String>> |
getNodePoolValues()
Returns all the nodes in the node pool. |
ClosableIterator<URIReference> |
getURIReferenceIterator()
|
void |
registerLiteral(Literal node)
|
void |
registerLocalBlankNode(BlankNode node)
|
void |
registerNodePoolValues(List<Map<Long,String>> values)
Registers a large number of nodes in ones go. |
void |
registerURIReference(URIReference node)
|
String |
removeNode(Long value)
Remove a node from the node pool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodePoolImpl(NodeTypePool newNodeTypePool, MapFactory newMapFactory)
Method Detail |
---|
public Node getNodeById(Long id)
NodePool
getNodeById
in interface NodePool
id
- The id of the node to search for.
public Long getNodeIdByString(String str)
NodePool
getNodeIdByString
in interface NodePool
str
- The string representation of a node.
public Long getNewNodeId()
NodePool
getNewNodeId
in interface NodePool
public ClosableIterator<BlankNode> getBlankNodeIterator()
getBlankNodeIterator
in interface NodePool
public ClosableIterator<URIReference> getURIReferenceIterator()
getURIReferenceIterator
in interface NodePool
public void registerLocalBlankNode(BlankNode node)
registerLocalBlankNode
in interface NodePool
public void registerURIReference(URIReference node)
registerURIReference
in interface NodePool
public void registerLiteral(Literal node)
registerLiteral
in interface NodePool
public void registerNodePoolValues(List<Map<Long,String>> values)
NodePool
registerNodePoolValues
in interface NodePool
values
- the map contains a list of longs to serialized nodes (as strings).public String removeNode(Long value)
NodePool
removeNode
in interface NodePool
value
- the value to remove.
public List<Map<Long,String>> getNodePoolValues()
NodePool
getNodePoolValues
in interface NodePool
public void clear()
NodePool
clear
in interface NodePool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |