|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MultivaluedIndex
Method Summary | |
---|---|
java.util.Collection |
getItems(java.lang.Object key)
Returns a collection view of the values associated in the index with specified key. |
java.util.Collection |
getObjects(java.lang.Object key,
SinglevaluedIndex repos)
Like getItems, but if the index contains keys, this returns the objects corresponding to the key |
boolean |
isUnique()
If true, the collection of values is contrained to hold no more than one of any value. |
java.util.Collection |
queryByKeyPrefix(java.lang.Object prefix,
SinglevaluedIndex repos)
Returns a collection of Map.Entry key-value pairs in the index,
where key matches the queried prefix. |
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Removes the first occurrence of the specified element in the list of values associated with the specified key. |
Methods inherited from interface org.netbeans.mdr.persistence.Index |
---|
add, getKeyType, getName, getValueType, keySet, remove |
Method Detail |
---|
java.util.Collection getItems(java.lang.Object key) throws StorageException
key
-
StorageException
java.util.Collection getObjects(java.lang.Object key, SinglevaluedIndex repos) throws StorageException
key
-
StorageException
boolean isUnique() throws StorageException
key
- repos
- where to fetch objects from
StorageException
boolean remove(java.lang.Object key, java.lang.Object value) throws StorageException
key
- value
-
StorageException
java.util.Collection queryByKeyPrefix(java.lang.Object prefix, SinglevaluedIndex repos) throws StorageException
Map.Entry
key-value pairs in the index,
where key matches the queried prefix.
Values are live and modifiable collection, as in case of getObjects(java.lang.Object, org.netbeans.mdr.persistence.SinglevaluedIndex)
method.
prefix
- queried prefixrepos
- primary index
StorageException
java.lang.UnsupportedOperationException
- thrown if the index does not support quries on
prefixes (due to unsuitable key entry type, etc.)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |