org.axiondb.engine.indexes
Class BaseArrayIndexLoader

java.lang.Object
  extended by org.axiondb.engine.indexes.BaseArrayIndexLoader
All Implemented Interfaces:
IndexLoader
Direct Known Subclasses:
IntArrayIndexLoader, ObjectArrayIndexLoader

public abstract class BaseArrayIndexLoader
extends Object
implements IndexLoader

Version:
$Revision: 1.3 $ $Date: 2004/09/09 23:47:46 $

Constructor Summary
BaseArrayIndexLoader()
           
 
Method Summary
 Index loadIndex(Table table, File dataDirectory)
           
protected abstract  Index makeIndex(String name, Column col, boolean unique, Object keys, org.apache.commons.collections.primitives.IntList values)
           
protected  org.apache.commons.collections.primitives.IntList readIntList(ObjectInputStream in)
           
protected abstract  Object readKeys(ObjectInputStream in)
           
 void saveIndex(Index ndx, File dataDirectory)
           
 void saveIndexAfterTruncate(Index ndx, File dataDirectory)
           
protected abstract  void writeKeys(ObjectOutputStream out, BaseArrayIndex baseindex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseArrayIndexLoader

public BaseArrayIndexLoader()
Method Detail

loadIndex

public final Index loadIndex(Table table,
                             File dataDirectory)
                      throws AxionException
Specified by:
loadIndex in interface IndexLoader
Throws:
AxionException

saveIndex

public final void saveIndex(Index ndx,
                            File dataDirectory)
                     throws AxionException
Specified by:
saveIndex in interface IndexLoader
Throws:
AxionException

saveIndexAfterTruncate

public void saveIndexAfterTruncate(Index ndx,
                                   File dataDirectory)
                            throws AxionException
Specified by:
saveIndexAfterTruncate in interface IndexLoader
Throws:
AxionException

readIntList

protected org.apache.commons.collections.primitives.IntList readIntList(ObjectInputStream in)
                                                                 throws IOException
Throws:
IOException

writeKeys

protected abstract void writeKeys(ObjectOutputStream out,
                                  BaseArrayIndex baseindex)
                           throws IOException
Throws:
IOException

readKeys

protected abstract Object readKeys(ObjectInputStream in)
                            throws IOException,
                                   ClassNotFoundException
Throws:
IOException
ClassNotFoundException

makeIndex

protected abstract Index makeIndex(String name,
                                   Column col,
                                   boolean unique,
                                   Object keys,
                                   org.apache.commons.collections.primitives.IntList values)