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

java.lang.Object
  |
  +--org.openmobileis.database.fastobjectdb.db.index.FODBIndex
        |
        +--org.openmobileis.database.fastobjectdb.db.index.FODBStringIndex
              |
              +--org.openmobileis.database.fastobjectdb.db.index.FODBMultipleStringIndex
All Implemented Interfaces:
FODBMultipleIndex

public class FODBMultipleStringIndex
extends FODBStringIndex
implements FODBMultipleIndex


Fields inherited from class org.openmobileis.database.fastobjectdb.db.index.FODBIndex
accessObj, colFile, header, minKey, MULTIPLE, name, UNIQUE
 
Constructor Summary
FODBMultipleStringIndex(FODBIndexHeader newHeader, FODBCollectionIndexFile cFile, java.lang.reflect.AccessibleObject accObj)
           
FODBMultipleStringIndex(FODBStringIndexDescriptor descriptor, FODBCollectionIndexFile cFile, java.lang.reflect.AccessibleObject accObj)
           
 
Method Summary
protected  void addSearchResult(StringNode node, int pos, LongArray array, SodaStringIndexComparator comparator)
           
protected  long createPtrArray(long ptr)
           
 FODBIndexDescriptor getIndexDescriptor()
           
 int getType()
           
protected  boolean removeKeyPtr(Node node, int pos, long pointer)
          remove the specified pointer from the ptr array. return true if array is deleted (empty)
protected  void specificHeaderInit(FODBIndexDescriptor descriptor)
           
protected  void writeKeyPtr(Node node, int pos, long newptr)
          replace the old ptr with new if present.
 
Methods inherited from class org.openmobileis.database.fastobjectdb.db.index.FODBStringIndex
deleteKey, getArrayKey, getKey, getKeySensitive, getNodeForKey, initRoot, insertKey, parcours, 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

FODBMultipleStringIndex

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

FODBMultipleStringIndex

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

specificHeaderInit

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

getType

public int getType()
Overrides:
getType in class FODBIndex

writeKeyPtr

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

createPtrArray

protected long createPtrArray(long ptr)
                       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
Overrides:
addSearchResult in class FODBStringIndex

removeKeyPtr

protected boolean removeKeyPtr(Node node,
                               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)
Overrides:
removeKeyPtr in class FODBStringIndex

getIndexDescriptor

public FODBIndexDescriptor getIndexDescriptor()
Overrides:
getIndexDescriptor in class FODBIndex


Copyright 2005 e-Care. All Rights Reserved.