|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Index<T>
| Method Summary | |
|---|---|
void |
add(T... node)
Adds a triple to a single index. |
void |
clear()
Removes all triples from this index. |
void |
close()
|
boolean |
contains(T first)
Returns true if the value given exists in the index. |
long |
getSize()
Returns the number of triples in the index. |
ClosableIterator<T[]> |
getSubIndex(T first)
Returns an array of results from the index. |
ClosableIterator<T> |
getSubSubIndex(T first,
T second)
Returns an array of results from the index. |
ClosableIterator<T[]> |
iterator()
Returns an iterator which contains all the elements in the graph as an array of distinct longs. |
void |
remove(T... node)
Removes a triple from a single index. |
boolean |
removeSubIndex(T first)
Removes the given entry of long to set of longs with the given entry. |
| Method Detail |
|---|
void add(T... node)
throws GraphException
node - The nodes to add.
GraphException - If there was an error adding the statement.
void remove(T... node)
throws GraphException
node - the nodes to remove.
GraphException - If there was an error revoking the statement, for example if it didn't exist.void clear()
ClosableIterator<T[]> iterator()
ClosableIterator<T[]> getSubIndex(T first)
first - the entry to find.
ClosableIterator<T> getSubSubIndex(T first,
T second)
first - the entry to find.second - the entry to find.
boolean contains(T first)
first - the key to search for.
boolean removeSubIndex(T first)
first - the entry set to remove.
long getSize()
void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||