org.axiondb.engine.indexes
Class BaseBTreeIndexLoader

java.lang.Object
  extended by org.axiondb.engine.indexes.BaseBTreeIndexLoader
All Implemented Interfaces:
IndexLoader
Direct Known Subclasses:
IntBTreeIndexLoader, ObjectBTreeIndexLoader

public abstract class BaseBTreeIndexLoader
extends java.lang.Object
implements IndexLoader

Version:
$Revision: 1.2 $ $Date: 2005/05/02 22:22:47 $

Field Summary
protected static AxionFileSystem FS
           
 
Constructor Summary
BaseBTreeIndexLoader()
           
 
Method Summary
 Index loadIndex(Table table, java.io.File dataDirectory)
           
protected abstract  Index makeIndex(java.lang.String name, Column col, boolean unique, java.io.File dataDirectory)
           
abstract  void save(Index ndx, java.io.File dataDirectory)
           
 void saveIndex(Index index, java.io.File dataDirectory)
           
abstract  void saveIndexAfterTruncate(Index ndx, java.io.File dataDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FS

protected static AxionFileSystem FS
Constructor Detail

BaseBTreeIndexLoader

public BaseBTreeIndexLoader()
Method Detail

loadIndex

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

saveIndex

public void saveIndex(Index index,
                      java.io.File dataDirectory)
               throws AxionException
Specified by:
saveIndex in interface IndexLoader
Throws:
AxionException

saveIndexAfterTruncate

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

save

public abstract void save(Index ndx,
                          java.io.File dataDirectory)
                   throws AxionException
Throws:
AxionException

makeIndex

protected abstract Index makeIndex(java.lang.String name,
                                   Column col,
                                   boolean unique,
                                   java.io.File dataDirectory)
                            throws AxionException
Throws:
AxionException