Package com.mckoi.database
Class IndexSetStore.SnapshotIndexSet
- java.lang.Object
-
- com.mckoi.database.IndexSetStore.SnapshotIndexSet
-
- All Implemented Interfaces:
IndexSet
- Enclosing class:
- IndexSetStore
private class IndexSetStore.SnapshotIndexSet extends java.lang.Object implements IndexSet
The implementation of IndexSet which represents a mutable snapshot of the indices stored in this set.
-
-
Field Summary
Fields Modifier and Type Field Description private booleandisposedSet to true when this object is disposed.private java.util.ArrayListinteger_listsThe list of IndexIntegerList objects that have been returned via the 'getIndex(n)' method.private IndexSetStore.IndexBlock[]snapshot_index_blocksThe list of IndexBlock object that represent the view of the index set when the view was created.
-
Constructor Summary
Constructors Constructor Description SnapshotIndexSet(IndexSetStore.IndexBlock[] blocks)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Cleans up and disposes the resources associated with this set of index.voidfinalize()IndexSetStore.IndexIntegerList[]getAllLists()Returns all the lists that have been created by calls to 'getIndex'IntegerListInterfacegetIndex(int n)Returns a mutable object that implements IntegerListInterface for the given index number in this set of indices.
-
-
-
Field Detail
-
snapshot_index_blocks
private IndexSetStore.IndexBlock[] snapshot_index_blocks
The list of IndexBlock object that represent the view of the index set when the view was created.
-
integer_lists
private java.util.ArrayList integer_lists
The list of IndexIntegerList objects that have been returned via the 'getIndex(n)' method.
-
disposed
private boolean disposed
Set to true when this object is disposed.
-
-
Constructor Detail
-
SnapshotIndexSet
public SnapshotIndexSet(IndexSetStore.IndexBlock[] blocks)
Constructor.
-
-
Method Detail
-
getAllLists
public IndexSetStore.IndexIntegerList[] getAllLists()
Returns all the lists that have been created by calls to 'getIndex'
-
getIndex
public IntegerListInterface getIndex(int n)
Description copied from interface:IndexSetReturns a mutable object that implements IntegerListInterface for the given index number in this set of indices.
-
dispose
public void dispose()
Description copied from interface:IndexSetCleans up and disposes the resources associated with this set of index.
-
finalize
public void finalize()
- Overrides:
finalizein classjava.lang.Object
-
-