|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 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 Long getNewNodeId()
NodePool
getNewNodeId in interface NodePoolpublic ClosableIterator<BlankNode> getBlankNodeIterator()
getBlankNodeIterator in interface NodePoolpublic ClosableIterator<URIReference> getURIReferenceIterator()
getURIReferenceIterator in interface NodePoolpublic void registerLocalBlankNode(BlankNode node)
registerLocalBlankNode in interface NodePoolpublic void registerURIReference(URIReference node)
registerURIReference in interface NodePoolpublic void registerLiteral(Literal node)
registerLiteral in interface NodePoolpublic void registerNodePoolValues(List<Map<Long,String>> values)
NodePool
registerNodePoolValues in interface NodePoolvalues - the map contains a list of longs to serialized nodes (as strings).public String removeNode(Long value)
NodePool
removeNode in interface NodePoolvalue - the value to remove.
public List<Map<Long,String>> getNodePoolValues()
NodePool
getNodePoolValues in interface NodePoolpublic void clear()
NodePool
clear in interface NodePool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||