public interface IStorageUtilityIndexed<E extends Externalizable> extends IStorageUtility<E>
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Integer> |
getIDsForValue(java.lang.String fieldName,
java.lang.Object value)
Retrieves a List of IDs of Externalizable objects in storage for which the field
specified contains the value specified.
|
E |
getRecordForValue(java.lang.String fieldName,
java.lang.Object value)
Retrieves a Externalizable object from the storage which is reference by the unique index fieldName.
|
void |
registerIndex(java.lang.String filterIndex)
Optional.
|
add, close, destroy, exists, getAccessLock, getNumRecords, getRecordSize, getTotalSize, isEmpty, iterate, read, readBytes, remove, remove, removeAll, removeAll, repack, repair, setReadOnly, update, write
java.util.List<java.lang.Integer> getIDsForValue(java.lang.String fieldName, java.lang.Object value)
fieldName
- The name of a field which should be evaluatedvalue
- The value which should be contained by the field specifiedjava.lang.RuntimeException
- (Fix this exception type) if the field is unrecognized by the
meta dataE getRecordForValue(java.lang.String fieldName, java.lang.Object value) throws java.util.NoSuchElementException, InvalidIndexException
fieldName
- The name of the index field which will be evaluatedvalue
- The value which should be set in the index specified by fieldName for the returned
object.java.util.NoSuchElementException
- If no objects reside in storage for which the return condition
can be successful.InvalidIndexException
- If the field used is an invalid index, because more than one field in the Storage
contains the value of the index requested.void registerIndex(java.lang.String filterIndex)
filterIndex
-