org.axiondb.engine.indexes
Class BaseBTreeIndex

java.lang.Object
  extended by org.axiondb.event.BaseTableModificationListener
      extended by org.axiondb.engine.indexes.BaseIndex
          extended by org.axiondb.engine.indexes.BaseBTreeIndex
All Implemented Interfaces:
TableModificationListener, Index
Direct Known Subclasses:
IntBTreeIndex, ObjectBTreeIndex

public abstract class BaseBTreeIndex
extends BaseIndex
implements Index

Abstract base implementation for B-Tree based indices.

Version:
$Revision: 1.6 $ $Date: 2005/03/12 02:10:41 $

Field Summary
 
Fields inherited from interface org.axiondb.Index
ARRAY, BTREE, DEFAULT, TTREE
 
Constructor Summary
BaseBTreeIndex(String name, Column column, boolean unique)
           
 
Method Summary
 String getType()
          Returns my type.
 void save(File dataDirectory)
           
 void saveAfterTruncate(File dataDirectory)
           
 boolean supportsFunction(Function fn)
          Returns true iff #getRowIterator(org.axiondb.RowSource,org.axiondb.ComparisonOperator,java.lang.Object) can support the given operator, false otherwise.
 
Methods inherited from class org.axiondb.engine.indexes.BaseIndex
getComparator, getDataType, getIndexedColumn, getIndexLoader, getInorderRowIterator, getName, getRowIterator, isUnique, truncate
 
Methods inherited from class org.axiondb.event.BaseTableModificationListener
columnAdded, constraintAdded, constraintRemoved, rowDeleted, rowInserted, rowUpdated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.axiondb.Index
changeRowId, getIndexedColumn, getIndexLoader, getInorderRowIterator, getName, getRowIterator, isUnique, truncate
 
Methods inherited from interface org.axiondb.event.TableModificationListener
columnAdded, constraintAdded, constraintRemoved, rowDeleted, rowInserted, rowUpdated
 

Constructor Detail

BaseBTreeIndex

public BaseBTreeIndex(String name,
                      Column column,
                      boolean unique)
Method Detail

getType

public String getType()
Description copied from interface: Index
Returns my type.

Specified by:
getType in interface Index

save

public void save(File dataDirectory)
          throws AxionException
Specified by:
save in interface Index
Specified by:
save in class BaseIndex
Throws:
AxionException

saveAfterTruncate

public void saveAfterTruncate(File dataDirectory)
                       throws AxionException
Specified by:
saveAfterTruncate in interface Index
Specified by:
saveAfterTruncate in class BaseIndex
Throws:
AxionException

supportsFunction

public boolean supportsFunction(Function fn)
Description copied from interface: Index
Returns true iff #getRowIterator(org.axiondb.RowSource,org.axiondb.ComparisonOperator,java.lang.Object) can support the given operator, false otherwise.

Specified by:
supportsFunction in interface Index
Specified by:
supportsFunction in class BaseIndex