public interface IStorageUtilityIndexed<E extends Externalizable> extends IStorageUtility<E>
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
getIDsForValue(String fieldName,
Object value)
Retrieves a List of IDs of Externalizable objects in storage for which the field
specified contains the value specified.
|
E |
getRecordForValue(String fieldName,
Object value)
Retrieves a Externalizable object from the storage which is reference by the unique index fieldName.
|
void |
registerIndex(String filterIndex)
Optional.
|
add, close, destroy, exists, getAccessLock, getNumRecords, getRecordSize, getTotalSize, isEmpty, iterate, read, readBytes, remove, remove, removeAll, removeAll, repack, repair, setReadOnly, update, writeList<Integer> getIDsForValue(String fieldName, Object value)
fieldName - The name of a field which should be evaluatedvalue - The value which should be contained by the field specifiedRuntimeException - (Fix this exception type) if the field is unrecognized by the
meta dataE getRecordForValue(String fieldName, Object value) throws 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.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(String filterIndex)
filterIndex - Copyright © 2023. All rights reserved.