|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LongIndex
Represents an indexed set of longs.
Method Summary | |
---|---|
void |
add(Long[] triple)
Adds a triple to a single index. |
void |
add(Long first,
Long second,
Long third)
Adds a triple to a single 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[] triple)
Removes a triple from a single index. |
void |
remove(Long first,
Long second,
Long third)
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. |
Method Detail |
---|
void add(Long[] triple) throws GraphException
triple
- Consists of three longs.
GraphException
- If there was an error adding the statement.void add(Long first, Long second, Long third) throws GraphException
first
- The first node id.second
- The second node id.third
- The last node id.
GraphException
- If there was an error adding the statement.void remove(Long[] triple) throws GraphException
triple
- Consists of three longs.
GraphException
- If there was an error revoking the statement, for example if it didn't exist.void remove(Long first, Long second, Long third) throws GraphException
first
- The first node id.second
- The second node id.third
- The last node id.
GraphException
- If there was an error revoking the statement, for example if it didn't exist.Iterator<Map.Entry<Long,Map<Long,Set<Long>>>> iterator()
Map<Long,Set<Long>> getSubIndex(Long first)
first
- the entry set to find.
boolean removeSubIndex(Long first)
first
- the entry set to remove.
long getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |