org.axiondb.engine.indexes
Class StringBTreeIndex

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

public class StringBTreeIndex
extends ObjectBTreeIndex

Version:
$Revision: 1.6 $ $Date: 2005/06/18 01:03:45 $

Field Summary
 
Fields inherited from class org.axiondb.engine.indexes.ObjectBTreeIndex
_minimizationFactor
 
Fields inherited from interface org.axiondb.Index
ARRAY, BTREE, DEFAULT, TTREE
 
Constructor Summary
StringBTreeIndex(String name, Column column, boolean unique)
           
StringBTreeIndex(String name, Column column, boolean unique, int minimizationFactor)
           
StringBTreeIndex(String name, Column column, boolean unique, int minimizationFactor, File dataDirectory)
           
 
Method Summary
protected  ObjectBTree createTree(File dataDirectory, String name, int minimizationFactor, DataType dataType)
           
 IndexLoader getIndexLoader()
           
 int getMinimizationFactor()
           
protected  Object getNullKey()
           
 
Methods inherited from class org.axiondb.engine.indexes.ObjectBTreeIndex
changeRowId, getBTree, getInorderRowIterator, getRowIterator, rowDeleted, rowInserted, rowUpdated, truncate
 
Methods inherited from class org.axiondb.engine.indexes.BaseBTreeIndex
getType, save, saveAfterTruncate, supportsFunction
 
Methods inherited from class org.axiondb.engine.indexes.BaseIndex
getComparator, getDataType, getIndexedColumn, getName, isUnique
 
Methods inherited from class org.axiondb.event.BaseTableModificationListener
columnAdded, constraintAdded, constraintRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.axiondb.event.TableModificationListener
columnAdded, constraintAdded, constraintRemoved
 
Methods inherited from interface org.axiondb.Index
getIndexedColumn, getName, isUnique
 

Constructor Detail

StringBTreeIndex

public StringBTreeIndex(String name,
                        Column column,
                        boolean unique)
                 throws AxionException
Throws:
AxionException

StringBTreeIndex

public StringBTreeIndex(String name,
                        Column column,
                        boolean unique,
                        int minimizationFactor)
                 throws AxionException
Throws:
AxionException

StringBTreeIndex

public StringBTreeIndex(String name,
                        Column column,
                        boolean unique,
                        int minimizationFactor,
                        File dataDirectory)
                 throws AxionException
Throws:
AxionException
Method Detail

getIndexLoader

public IndexLoader getIndexLoader()
Specified by:
getIndexLoader in interface Index
Overrides:
getIndexLoader in class ObjectBTreeIndex

getMinimizationFactor

public int getMinimizationFactor()

createTree

protected ObjectBTree createTree(File dataDirectory,
                                 String name,
                                 int minimizationFactor,
                                 DataType dataType)
                          throws IOException,
                                 ClassNotFoundException
Overrides:
createTree in class ObjectBTreeIndex
Throws:
IOException
ClassNotFoundException

getNullKey

protected Object getNullKey()
Overrides:
getNullKey in class ObjectBTreeIndex