|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodePool
Maps between the Long identifier and a Node (globalized value) or from a String to a Long (local value).
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. |
Method Detail |
---|
Node getNodeById(Long id)
id
- The id of the node to search for.
Long getNodeIdByString(String str)
str
- The string representation of a node.
List<Map<Long,String>> getNodePoolValues()
Long getNewNodeId()
void clear()
void registerNodePoolValues(List<Map<Long,String>> values)
values
- the map contains a list of longs to serialized nodes (as strings).String removeNode(Long value)
value
- the value to remove.
void registerLocalBlankNode(BlankNode node)
void registerURIReference(URIReference node)
void registerLiteral(Literal node)
ClosableIterator<BlankNode> getBlankNodeIterator()
ClosableIterator<URIReference> getURIReferenceIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |