|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmobileis.database.fastobjectdb.db.index.FODBIndex
FODBIndex is an abstract Class on which each type of index will be based.
Field Summary | |
protected java.lang.reflect.AccessibleObject |
accessObj
|
protected FODBCollectionIndexFile |
colFile
|
protected FODBIndexHeader |
header
|
protected int |
minKey
|
static int |
MULTIPLE
|
protected java.lang.String |
name
|
static int |
UNIQUE
|
Constructor Summary | |
FODBIndex(FODBIndexDescriptor descriptor,
FODBCollectionIndexFile cFile,
java.lang.reflect.AccessibleObject accObj)
Constructor of FODBIndex, using an index descriptor. |
|
FODBIndex(FODBIndexHeader newHeader,
FODBCollectionIndexFile cFile,
java.lang.reflect.AccessibleObject accObj)
Constructor of FODBIndex, using an index header. |
Method Summary | |
void |
add(java.lang.Object obj,
long pos)
Add a new pointer in our index. |
protected abstract boolean |
deleteKey(java.lang.Object obj,
long pos)
|
boolean |
delObjectWithKey(java.lang.Object obj,
long pos)
Remove a pointer from our index. |
java.lang.Class |
getAccessObjType()
|
abstract Array |
getArrayKey(java.lang.Object obj)
|
abstract FODBIndexDescriptor |
getIndexDescriptor()
|
FODBIndexHeader |
getIndexHeader()
|
abstract java.lang.Object |
getKey(java.lang.Object obj)
|
java.lang.String |
getName()
|
long |
getPos()
|
abstract int |
getType()
|
protected abstract Node |
initRoot(FODBIndexDescriptor descriptor)
|
protected abstract void |
insertKey(java.lang.Object key,
long pos)
|
boolean |
isEmpty()
return true if the index is empty. |
abstract long[] |
query(SodaIndexComparator comparator)
|
Node |
readRoot()
|
protected abstract void |
specificDescriptorVerifications(FODBIndexDescriptor descriptor)
|
protected abstract void |
specificHeaderInit(FODBIndexDescriptor descriptor)
|
java.lang.String |
toString()
Helps us debugging. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int UNIQUE
public static final int MULTIPLE
protected java.lang.String name
protected final java.lang.reflect.AccessibleObject accessObj
protected FODBCollectionIndexFile colFile
protected FODBIndexHeader header
protected int minKey
Constructor Detail |
public FODBIndex(FODBIndexHeader newHeader, FODBCollectionIndexFile cFile, java.lang.reflect.AccessibleObject accObj)
public FODBIndex(FODBIndexDescriptor descriptor, FODBCollectionIndexFile cFile, java.lang.reflect.AccessibleObject accObj) throws FODBException
Method Detail |
public Node readRoot() throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.String getName()
public long getPos()
public boolean isEmpty() throws FODBException
FODBException
public void add(java.lang.Object obj, long pos) throws FODBException
obj
- - helps us getting the key.pos
- - position of the element in the collection file.
FODBDataFileException
FODBIndexException
BTreeException
FODBException
public java.lang.Class getAccessObjType()
public boolean delObjectWithKey(java.lang.Object obj, long pos) throws FODBException
obj
- - helps us getting the key.pos
- - position of the element in the collection file.
FODBIndexException
FODBException
public FODBIndexHeader getIndexHeader()
public abstract long[] query(SodaIndexComparator comparator) throws FODBQueryException
FODBQueryException
protected abstract void specificDescriptorVerifications(FODBIndexDescriptor descriptor) throws FODBException
FODBException
protected abstract Node initRoot(FODBIndexDescriptor descriptor) throws FODBException
FODBException
protected abstract void specificHeaderInit(FODBIndexDescriptor descriptor) throws FODBException
FODBException
public abstract int getType()
protected abstract void insertKey(java.lang.Object key, long pos) throws java.io.IOException, java.lang.ClassNotFoundException, FODBException
java.io.IOException
java.lang.ClassNotFoundException
FODBException
protected abstract boolean deleteKey(java.lang.Object obj, long pos) throws java.io.IOException, java.lang.ClassNotFoundException, FODBException
java.io.IOException
java.lang.ClassNotFoundException
FODBException
public abstract FODBIndexDescriptor getIndexDescriptor()
public abstract java.lang.Object getKey(java.lang.Object obj) throws FODBException
FODBException
public abstract Array getArrayKey(java.lang.Object obj) throws FODBException
FODBException
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |