Inheritance diagram for org.openmobileis.database.fastobjectdb.db.index.FODBIndex:
Definition at line 50 of file FODBIndex.java.
Public Member Functions | |
FODBIndex (FODBIndexHeader newHeader, FODBCollectionIndexFile cFile, AccessibleObject accObj) | |
Constructor of FODBIndex, using an index header. | |
Node | readRoot () throws IOException, ClassNotFoundException |
FODBIndex (FODBIndexDescriptor descriptor, FODBCollectionIndexFile cFile, AccessibleObject accObj) throws FODBException | |
Constructor of FODBIndex, using an index descriptor. | |
String | getName () |
long | getPos () |
boolean | isEmpty () throws FODBException |
return true if the index is empty. | |
void | add (Object obj, long pos) throws FODBException |
Add a new pointer in our index. | |
Class | getAccessObjType () |
boolean | delObjectWithKey (Object obj, long pos) throws FODBException |
Remove a pointer from our index. | |
FODBIndexHeader | getIndexHeader () |
String | toString () |
Helps us debugging. | |
Static Public Attributes | |
static final int | UNIQUE = 1 |
static final int | MULTIPLE = 2 |
Protected Attributes | |
String | name |
final AccessibleObject | accessObj |
FODBCollectionIndexFile | colFile |
FODBIndexHeader | header |
int | minKey |
|
Constructor of FODBIndex, using an index header. Using an index header, means that we're opening (and not creating) an index. Definition at line 65 of file FODBIndex.java. References org.openmobileis.database.fastobjectdb.db.index.FODBIndex.accessObj, org.openmobileis.database.fastobjectdb.db.index.FODBIndex.colFile, org.openmobileis.database.fastobjectdb.db.index.FODBIndexHeader.getName(), org.openmobileis.database.fastobjectdb.db.index.FODBIndex.header, org.openmobileis.database.fastobjectdb.db.index.FODBIndex.minKey, org.openmobileis.database.fastobjectdb.db.index.FODBIndex.name, and org.openmobileis.database.fastobjectdb.db.index.FODBIndexHeader.order. |
|
|
Add a new pointer in our index.
Definition at line 173 of file FODBIndex.java. References org.openmobileis.common.util.collection.Array.get(), org.openmobileis.database.fastobjectdb.db.index.FODBIndex.getAccessObjType(), and org.openmobileis.common.util.collection.Array.size. |
|
Remove a pointer from our index.
Definition at line 211 of file FODBIndex.java. References org.openmobileis.common.util.collection.Array.get(), org.openmobileis.database.fastobjectdb.db.index.FODBIndex.getAccessObjType(), and org.openmobileis.common.util.collection.Array.size. Referenced by org.openmobileis.database.fastobjectdb.db.FODBCollection.deleteObjectWithId(). |
|
return true if the index is empty. throws StoreBTreeException if the index is closed Definition at line 151 of file FODBIndex.java. References org.openmobileis.database.fastobjectdb.db.index.FODBIndex.colFile, org.openmobileis.database.fastobjectdb.db.index.FODBIndex.header, org.openmobileis.database.fastobjectdb.db.index.node.Node.nbKey, org.openmobileis.database.fastobjectdb.db.store.FODBCollectionIndexFile.readNode(), and org.openmobileis.database.fastobjectdb.db.index.FODBIndexHeader.rootPtr. |