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

java.lang.Object
  |
  +--org.openmobileis.database.fastobjectdb.db.index.FODBIndex
        |
        +--org.openmobileis.database.fastobjectdb.db.index.FODBLongIndex
Direct Known Subclasses:
FODBMultipleLongIndex, FODBUniqueLongIndex

public abstract class FODBLongIndex
extends FODBIndex

Base Long index


Fields inherited from class org.openmobileis.database.fastobjectdb.db.index.FODBIndex
accessObj, colFile, header, minKey, MULTIPLE, name, UNIQUE
 
Constructor Summary
FODBLongIndex(FODBIndexHeader newHeader, FODBCollectionIndexFile cFile, java.lang.reflect.AccessibleObject accObj)
           
FODBLongIndex(FODBLongIndexDescriptor descriptor, FODBCollectionIndexFile cFile, java.lang.reflect.AccessibleObject accObj)
           
 
Method Summary
protected abstract  void addSearchResult(LongNode pg, 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  void specificHeaderInit(FODBIndexDescriptor descriptor)
           
protected abstract  void writeKeyPtr(Node pg, 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

FODBLongIndex

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

FODBLongIndex

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

specificDescriptorVerifications

protected void specificDescriptorVerifications(FODBIndexDescriptor descriptor)
                                        throws FODBException
Overrides:
specificDescriptorVerifications in class FODBIndex

initRoot

protected Node initRoot(FODBIndexDescriptor descriptor)
                 throws FODBException
Overrides:
initRoot in class FODBIndex

specificHeaderInit

protected void specificHeaderInit(FODBIndexDescriptor descriptor)
                           throws FODBException
Overrides:
specificHeaderInit in class FODBIndex

getKey

public java.lang.Object getKey(java.lang.Object obj)
                        throws FODBException
Overrides:
getKey in class FODBIndex

insertKey

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

getNodeForKey

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

query

public long[] query(SodaIndexComparator comparator)
             throws FODBQueryException
Overrides:
query in class FODBIndex

deleteKey

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

getArrayKey

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

writeKeyPtr

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

addSearchResult

protected abstract void addSearchResult(LongNode pg,
                                        int pos,
                                        LongArray array)
                                 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


Copyright 2005 e-Care. All Rights Reserved.