|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
IndexService.
@Deprecated public interface Index
An index that indexes nodes with a key. This class isn't ready for general usage yet and use of it is discouraged.
| Method Summary | |
|---|---|
void |
clear()
Deprecated. Removes all the entries from this index. |
void |
drop()
Deprecated. Deletes this index. |
void |
drop(int commitInterval)
Deprecated. Deletes this index using a commit interval. |
IndexHits<Node> |
getNodesFor(Object indexKey)
Deprecated. Returns nodes indexed with indexKey |
Node |
getSingleNodeFor(Object indexKey)
Deprecated. Returns a single node indexed with indexKey. |
void |
index(Node nodeToIndex,
Object indexKey)
Deprecated. Create a index mapping between a node and a key. |
void |
remove(Node nodeToRemove,
Object indexKey)
Deprecated. Removes a index mapping between a node and a key. |
Iterable<Node> |
values()
Deprecated. Returns all nodes in this index. |
| Method Detail |
|---|
void index(Node nodeToIndex,
Object indexKey)
nodeToIndex - the node to indexindexKey - the keyIndexHits<Node> getNodesFor(Object indexKey)
indexKey
indexKey - the index key
indexKeyNode getSingleNodeFor(Object indexKey)
indexKey. If more then
one node is indexed with that key a RuntimeException is
thrown. If no node is indexed with the key null is returned.
indexKey - the index key
indexKey
void remove(Node nodeToRemove,
Object indexKey)
nodeToRemove - node to removeindexKey - the keyvoid drop()
void drop(int commitInterval)
commitInterval - number of index mappings removed before a new
transaction is startedvoid clear()
Iterable<Node> values()
UnsupportedOperationException - if the values() method
isn't supported by this index.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||