org.jrdf.graph.global.index
Interface MoleculeIndex
- All Known Implementing Classes:
- AbstractMoleculeIndexMem, OSPMoleculeIndexMem, POSMoleculeIndexMem, SPOMoleculeIndexMem
public interface MoleculeIndex
The generic interface for storing indexed global molecules.
Method Summary |
void |
add(Node first,
Node second,
Node third,
Molecule molecule)
|
void |
clear()
|
boolean |
contains(Node node)
|
Molecule |
getMolecule(Triple headTriple)
|
long |
getNumberOfMolecules()
|
long |
getNumberOfTriples()
|
Map<Node,Map<Node,Molecule>> |
getSubIndex(Node first)
|
Iterator<Map.Entry<Node,Map<Node,Map<Node,Molecule>>>> |
keySetIterator()
|
void |
remove(Molecule molecule)
|
void |
remove(Node first,
Node second,
Node third)
|
boolean |
removeSubIndex(Node first)
|
add
void add(Node first,
Node second,
Node third,
Molecule molecule)
remove
void remove(Node first,
Node second,
Node third)
throws GraphException
- Throws:
GraphException
remove
void remove(Molecule molecule)
throws GraphException
- Throws:
GraphException
clear
void clear()
contains
boolean contains(Node node)
getNumberOfTriples
long getNumberOfTriples()
getNumberOfMolecules
long getNumberOfMolecules()
getSubIndex
Map<Node,Map<Node,Molecule>> getSubIndex(Node first)
removeSubIndex
boolean removeSubIndex(Node first)
getMolecule
Molecule getMolecule(Triple headTriple)
keySetIterator
Iterator<Map.Entry<Node,Map<Node,Map<Node,Molecule>>>> keySetIterator()