|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RelationIndex<K,V>
Maintains an index mapping values of one type to sets of another. Useful in implementations of Relations.
| Method Summary | |
|---|---|
void |
added(K key,
V value)
Requests that the index be updated to reflect the addition of the given key/value pair. |
void |
cleared()
Requests that the index be cleared to reflect the current state of the relation. |
boolean |
contains(java.lang.Object key,
java.lang.Object value)
Whether the given key-value mapping occurs. |
java.util.Iterator<Pair<K,V>> |
iterator()
Iterates through all key-value pairs in the index. |
PredicateSet<K> |
keys()
A dynamically-updating view of all keys mapping to at least one value. |
PredicateSet<V> |
match(K key)
A dynamically-updating view of all values matching key. |
void |
removed(K key,
V value)
Requests that the index be updated to reflect the removal of the given key/value pair. |
| Methods inherited from interface edu.rice.cs.plt.iter.SizedIterable |
|---|
hasFixedSize, isEmpty, isInfinite, isStatic, size, size |
| Method Detail |
|---|
boolean contains(java.lang.Object key,
java.lang.Object value)
PredicateSet<K> keys()
PredicateSet<V> match(K key)
key. May be empty. Mutation,
if supported, will be automatically reflected in the relation being indexed.
java.util.Iterator<Pair<K,V>> iterator()
iterator in interface java.lang.Iterable<Pair<K,V>>
void added(K key,
V value)
void removed(K key,
V value)
void cleared()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||