|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.prevayler.IndexStorage.FieldStorage
private class IndexStorage.FieldStorage
The storage used to maintain the indices for a field or combination of fields.
| Field Summary | |
|---|---|
private Map<Object,Collection<IndexedObject>> |
fieldMap
The map used to maintain the indexed values and the prevalent objects that match the indexed values. |
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
private |
IndexStorage.FieldStorage()
|
| Method Summary | |
|---|---|
private void |
add(Object index,
PrevalentObject object)
Add the specified index and corresponding prevalent object to the store. |
private Collection<IndexedObject> |
get(Object index)
Return the objects stored in fieldMap for the specified
index key. |
private boolean |
isIndexed(Object values)
Determine whether the specified value is indexed in the store. |
private void |
remove(Object key,
PrevalentObject object)
|
private void |
remove(PrevalentObject object)
Remove the specified prevalent object from the store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private final Map<Object,Collection<IndexedObject>> fieldMap
key for the map are
the indexed field(s) value(s) and the value is a
collection that contains the prevalent object instances that match
the index. If the index is unique the collection will have only
one instance in it.
Note: The indexed values are not stored directly since that
will drastically increate memory requirements for the system. The
values stored are instances of IndexedObject from which the
indexed object instance may be retrieved.
| Constructor Detail |
|---|
private IndexStorage.FieldStorage()
| Method Detail |
|---|
private void add(Object index,
PrevalentObject object)
index - The index that is being added.object - The prevalent object associated with the index.
private void remove(Object key,
PrevalentObject object)
private void remove(PrevalentObject object)
object - The prevalent object to remove from the store.private Collection<IndexedObject> get(Object index)
fieldMap for the specified
index key.
index - The index whose matching values are to be returned.
private boolean isIndexed(Object values)
values - The object(s) that are indexed.
true if indexed.
|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||