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

java.lang.Object
  extended byorg.openmobileis.database.fastobjectdb.db.index.FODBIndex
      extended byorg.openmobileis.database.fastobjectdb.db.index.FODBLongIndex
          extended byorg.openmobileis.database.fastobjectdb.db.index.FODBMultipleLongIndex
All Implemented Interfaces:
FODBMultipleIndex

public class FODBMultipleLongIndex
extends FODBLongIndex
implements FODBMultipleIndex


Field Summary
 
Fields inherited from class org.openmobileis.database.fastobjectdb.db.index.FODBIndex
accessObj, colFile, header, minKey, MULTIPLE, name, UNIQUE
 
Constructor Summary
FODBMultipleLongIndex(FODBIndexHeader newHeader, FODBCollectionIndexFile cFile, java.lang.reflect.AccessibleObject accObj)
           
FODBMultipleLongIndex(FODBLongIndexDescriptor descriptor, FODBCollectionIndexFile cFile, java.lang.reflect.AccessibleObject accObj)
           
 
Method Summary
protected  void addSearchResult(LongNode pg, int pos, LongArray array)
           
protected  void addSearchResult(StringNode node, int pos, LongArray array, SodaStringIndexComparator comparator)
           
protected  long createPtrArray(long ptr)
           
 FODBIndexDescriptor getIndexDescriptor()
           
 int getType()
           
protected  boolean removeKeyPtr(Node pg, int pos, long pointer)
          remove the specified pointer from the ptr array.
protected  void specificHeaderInit(FODBIndexDescriptor descriptor)
           
protected  void writeKeyPtr(Node pg, int pos, long newptr)
          replace the old ptr with new if present.
 
Methods inherited from class org.openmobileis.database.fastobjectdb.db.index.FODBLongIndex
deleteKey, getArrayKey, getKey, getNodeForKey, initRoot, insertKey, query, specificDescriptorVerifications
 
Methods inherited from class org.openmobileis.database.fastobjectdb.db.index.FODBIndex
add, delObjectWithKey, getAccessObjType, getIndexHeader, getName, getPos, isEmpty, readRoot, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FODBMultipleLongIndex

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

FODBMultipleLongIndex

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

specificHeaderInit

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

getType

public int getType()
Specified by:
getType in class FODBIndex

writeKeyPtr

protected void writeKeyPtr(Node pg,
                           int pos,
                           long newptr)
                    throws java.io.IOException,
                           java.lang.ClassNotFoundException
replace the old ptr with new if present. Add if old not present

Specified by:
writeKeyPtr in class FODBLongIndex
Throws:
java.io.IOException
java.lang.ClassNotFoundException

createPtrArray

protected long createPtrArray(long ptr)
                       throws java.io.IOException,
                              java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

addSearchResult

protected void addSearchResult(LongNode pg,
                               int pos,
                               LongArray array)
                        throws java.io.IOException,
                               java.lang.ClassNotFoundException
Specified by:
addSearchResult in class FODBLongIndex
Throws:
java.io.IOException
java.lang.ClassNotFoundException

addSearchResult

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

removeKeyPtr

protected boolean removeKeyPtr(Node pg,
                               int pos,
                               long pointer)
                        throws java.io.IOException,
                               java.lang.ClassNotFoundException
remove the specified pointer from the ptr array. return true if array is deleted (empty)

Specified by:
removeKeyPtr in class FODBLongIndex
Throws:
java.io.IOException
java.lang.ClassNotFoundException

getIndexDescriptor

public FODBIndexDescriptor getIndexDescriptor()
Specified by:
getIndexDescriptor in class FODBIndex


Copyright 2005 e-Care. All Rights Reserved.