|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphHandler
An interface used to make modifications on the internal indexes (012, 120 and 201) of a graph.
Method Summary | |
---|---|
Node[] |
createTriple(Long[] nodes)
Creates the globalized nodes based on the internal representation of the nodes. |
Iterator<Map.Entry<Long,Map<Long,Set<Long>>>> |
getEntries()
Returns an iterator over an internal representation of the graph in the fixed order based on the underlying index. |
void |
reconstructIndices(LongIndex firstIndex,
LongIndex secondIndex,
LongIndex thirdIndex)
As 012, 120 and 201 are symmetrical this can be used to reconstruct either two from any one index. |
void |
remove(Long[] currentNodes)
Removes a triple from the other indexes of the graph. |
Method Detail |
---|
void reconstructIndices(LongIndex firstIndex, LongIndex secondIndex, LongIndex thirdIndex) throws GraphException
firstIndex
- the first index.secondIndex
- the second index.thirdIndex
- the third index.
GraphException
- if the adds fail.Iterator<Map.Entry<Long,Map<Long,Set<Long>>>> getEntries()
Node[] createTriple(Long[] nodes) throws TripleFactoryException
nodes
- an array of three triple values to create.
TripleFactoryException
- if the nodes could not be mapped - the nodes must refer to something that already
have existed.void remove(Long[] currentNodes) throws GraphException
currentNodes
- the array of nodes to remove.
GraphException
- if the nodes do not exist.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |