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

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.FODBUniqueLongIndex
All Implemented Interfaces:
FODBUniqueIndex

public class FODBUniqueLongIndex
extends FODBLongIndex
implements FODBUniqueIndex


Field Summary
 
Fields inherited from class org.openmobileis.database.fastobjectdb.db.index.FODBIndex
accessObj, colFile, header, minKey, MULTIPLE, name, UNIQUE
 
Constructor Summary
FODBUniqueLongIndex(FODBIndexHeader newHeader, FODBCollectionIndexFile cFile, java.lang.reflect.AccessibleObject accObj)
           
FODBUniqueLongIndex(FODBLongIndexDescriptor descriptor, FODBCollectionIndexFile cFile, java.lang.reflect.AccessibleObject accObj)
           
 
Method Summary
protected  void addSearchResult(LongNode pg, int pos, LongArray array)
           
 FODBIndexDescriptor getIndexDescriptor()
           
 long getKeyPosition(java.lang.Object keytosearch)
           
 int getType()
           
protected  boolean removeKeyPtr(Node pg, int pos, long pointer)
           
protected  void writeKeyPtr(Node pg, int pos, long newptr)
           
 
Methods inherited from class org.openmobileis.database.fastobjectdb.db.index.FODBLongIndex
deleteKey, getArrayKey, getKey, getNodeForKey, initRoot, insertKey, query, specificDescriptorVerifications, specificHeaderInit
 
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
 
Methods inherited from interface org.openmobileis.database.fastobjectdb.db.index.FODBUniqueIndex
getNodeForKey, isEmpty
 

Constructor Detail

FODBUniqueLongIndex

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

FODBUniqueLongIndex

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

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
Specified by:
writeKeyPtr in class FODBLongIndex
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

getKeyPosition

public long getKeyPosition(java.lang.Object keytosearch)
                    throws FODBException
Specified by:
getKeyPosition in interface FODBUniqueIndex
Throws:
FODBException

removeKeyPtr

protected boolean removeKeyPtr(Node pg,
                               int pos,
                               long pointer)
                        throws java.io.IOException,
                               java.lang.ClassNotFoundException
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.