public interface MultivaluedIndex extends Index
| Modifier and Type | Method and Description |
|---|---|
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.
|
add, getKeyType, getName, getValueType, keySet, removejava.util.Collection getItems(java.lang.Object key)
throws StorageException
key - StorageExceptionjava.util.Collection getObjects(java.lang.Object key,
SinglevaluedIndex repos)
throws StorageException
key - StorageExceptionboolean isUnique()
throws StorageException
key - repos - where to fetch objects fromStorageExceptionboolean remove(java.lang.Object key,
java.lang.Object value)
throws StorageException
key - value - StorageExceptionjava.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 indexStorageExceptionjava.lang.UnsupportedOperationException - thrown if the index does not support quries on
prefixes (due to unsuitable key entry type, etc.)Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.