org.openmobileis.database.fastobjectdb.db.index
Class FODBIntIndex

java.lang.Object
  extended byorg.openmobileis.database.fastobjectdb.db.index.FODBIndex
      extended byorg.openmobileis.database.fastobjectdb.db.index.FODBIntIndex
Direct Known Subclasses:
FODBMultipleIntIndex, FODBUniqueIntIndex

public abstract class FODBIntIndex
extends FODBIndex

To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments


Field Summary
 
Fields inherited from class org.openmobileis.database.fastobjectdb.db.index.FODBIndex
accessObj, colFile, header, minKey, MULTIPLE, name, UNIQUE
 
Constructor Summary
FODBIntIndex(FODBIndexHeader newHeader, FODBCollectionIndexFile cFile, java.lang.reflect.AccessibleObject accObj)
           
FODBIntIndex(FODBIntIndexDescriptor descriptor, FODBCollectionIndexFile cFile, java.lang.reflect.AccessibleObject accObj)
           
 
Method Summary
protected abstract  void addSearchResult(IntNode node, int pos, LongArray array)
           
protected  boolean deleteKey(java.lang.Object obj, long dbptr)
           
 Array getArrayKey(java.lang.Object obj)
           
 java.lang.Object getKey(java.lang.Object obj)
           
 SearchResult getNodeForKey(java.lang.Object key)
           
protected  Node initRoot(FODBIndexDescriptor descriptor)
           
protected  void insertKey(java.lang.Object obj, long ptr)
           
 long[] query(SodaIndexComparator comparator)
           
protected abstract  boolean removeKeyPtr(Node pg, int pos, long pointer)
           
protected  void specificDescriptorVerifications(FODBIndexDescriptor descriptor)
           
protected abstract  void writeKeyPtr(Node node, int pos, long newptr)
           
 
Methods inherited from class org.openmobileis.database.fastobjectdb.db.index.FODBIndex
add, delObjectWithKey, getAccessObjType, getIndexDescriptor, getIndexHeader, getName, getPos, getType, isEmpty, readRoot, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FODBIntIndex

public FODBIntIndex(FODBIndexHeader newHeader,
                    FODBCollectionIndexFile cFile,
                    java.lang.reflect.AccessibleObject accObj)
             throws FODBException

FODBIntIndex

public FODBIntIndex(FODBIntIndexDescriptor descriptor,
                    FODBCollectionIndexFile cFile,
                    java.lang.reflect.AccessibleObject accObj)
             throws FODBException
Method Detail

specificDescriptorVerifications

protected void specificDescriptorVerifications(FODBIndexDescriptor descriptor)
                                        throws FODBException
Specified by:
specificDescriptorVerifications in class FODBIndex
Throws:
FODBException

initRoot

protected Node initRoot(FODBIndexDescriptor descriptor)
                 throws FODBException
Specified by:
initRoot in class FODBIndex
Throws:
FODBException

getKey

public java.lang.Object getKey(java.lang.Object obj)
                        throws FODBException
Specified by:
getKey in class FODBIndex
Throws:
FODBException

insertKey

protected void insertKey(java.lang.Object obj,
                         long ptr)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException,
                         FODBException
Specified by:
insertKey in class FODBIndex
Throws:
java.io.IOException
java.lang.ClassNotFoundException
FODBException

getNodeForKey

public SearchResult getNodeForKey(java.lang.Object key)
                           throws FODBException
Throws:
FODBException

query

public long[] query(SodaIndexComparator comparator)
             throws FODBQueryException
Specified by:
query in class FODBIndex
Throws:
FODBQueryException

deleteKey

protected boolean deleteKey(java.lang.Object obj,
                            long dbptr)
                     throws java.io.IOException,
                            java.lang.ClassNotFoundException,
                            FODBException
Specified by:
deleteKey in class FODBIndex
Throws:
java.io.IOException
java.lang.ClassNotFoundException
FODBException

getArrayKey

public Array getArrayKey(java.lang.Object obj)
                  throws FODBException
Specified by:
getArrayKey in class FODBIndex
Throws:
FODBException

writeKeyPtr

protected abstract void writeKeyPtr(Node node,
                                    int pos,
                                    long newptr)
                             throws java.io.IOException,
                                    java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

addSearchResult

protected abstract void addSearchResult(IntNode node,
                                        int pos,
                                        LongArray array)
                                 throws java.io.IOException,
                                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

removeKeyPtr

protected abstract boolean removeKeyPtr(Node pg,
                                        int pos,
                                        long pointer)
                                 throws java.io.IOException,
                                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright 2006 OpenMobileIS. All Rights Reserved.