|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jrdf.graph.local.index.longindex.bdb.LongIndexBdb
public final class LongIndexBdb
| Constructor Summary | |
|---|---|
LongIndexBdb(MapFactory newCreator)
|
|
| Method Summary | |
|---|---|
void |
add(Long... triple)
Adds a triple to a single index. |
void |
clear()
Removes all triples from this index. |
void |
close()
|
boolean |
contains(Long first)
Returns true if the value given exists in the index. |
long |
getSize()
Returns the number of triples in the index. |
Map<Long,Set<Long>> |
getSubIndex(Long first)
Returns the map of long to set of longs for the given entry of the index. |
Iterator<Map.Entry<Long,Map<Long,Set<Long>>>> |
iterator()
Returns an iterator which contains all the elements in the graph as a collections of distinct longs, contains a map of longs to other longs. |
void |
remove(Long... node)
Removes a triple from a single index. |
boolean |
removeSubIndex(Long first)
Removes the given entry of long to set of longs with the given entry. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LongIndexBdb(MapFactory newCreator)
| Method Detail |
|---|
public void add(Long... triple)
Index
add in interface Index<Long>triple - The nodes to add.
public void remove(Long... node)
throws GraphException
Index
remove in interface Index<Long>node - the nodes to remove.
GraphException - If there was an error revoking the statement, for example if it didn't exist.public void clear()
Index
clear in interface Index<Long>public Iterator<Map.Entry<Long,Map<Long,Set<Long>>>> iterator()
Index
iterator in interface Index<Long>public Map<Long,Set<Long>> getSubIndex(Long first)
Index
getSubIndex in interface Index<Long>first - the entry set to find.
public boolean contains(Long first)
Index
contains in interface Index<Long>first - the key to search for.
public boolean removeSubIndex(Long first)
Index
removeSubIndex in interface Index<Long>first - the entry set to remove.
public long getSize()
Index
getSize in interface Index<Long>public void close()
close in interface Index<Long>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||