org.axiondb.engine.indexes
Class IntBTreeIndex
java.lang.Object
org.axiondb.event.BaseTableModificationListener
org.axiondb.engine.indexes.BaseIndex
org.axiondb.engine.indexes.BaseBTreeIndex
org.axiondb.engine.indexes.IntBTreeIndex
- All Implemented Interfaces:
- TableModificationListener, Index
public class IntBTreeIndex
- extends BaseBTreeIndex
- implements TableModificationListener
A B-Tree index
over integer keys.
- Version:
- $Revision: 1.9 $ $Date: 2005/12/20 18:32:30 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntBTreeIndex
public IntBTreeIndex(String name,
Column column,
boolean unique)
throws AxionException
- Throws:
AxionException
IntBTreeIndex
public IntBTreeIndex(String name,
Column column,
boolean unique,
File dataDirectory)
throws AxionException
- Throws:
AxionException
changeRowId
public void changeRowId(Table table,
Row row,
int oldId,
int newId)
throws AxionException
- Specified by:
changeRowId
in interface Index
- Throws:
AxionException
getBTree
public IntBTree getBTree()
getIndexLoader
public IndexLoader getIndexLoader()
- Specified by:
getIndexLoader
in interface Index
- Specified by:
getIndexLoader
in class BaseIndex
getInorderRowIterator
public final RowIterator getInorderRowIterator(RowSource source)
throws AxionException
- Description copied from interface:
Index
- Returns a
RowIterator
which is inorder traversal of keys,
- Specified by:
getInorderRowIterator
in interface Index
- Specified by:
getInorderRowIterator
in class BaseIndex
- Parameters:
source
- table/view for which we need to get inorder traversal
- Returns:
-
- Throws:
AxionException
getRowIterator
public RowIterator getRowIterator(RowSource source,
Function function,
Object value)
throws AxionException
- Description copied from interface:
Index
- Returns a
RowIterator
over the indexed rows, limited by the given
ComparisonOperator
/value pair, using the default sort order.
- Specified by:
getRowIterator
in interface Index
- Specified by:
getRowIterator
in class BaseIndex
value
- the value to compare the indexed column to
- Throws:
AxionException
rowDeleted
public void rowDeleted(RowEvent event)
throws AxionException
- Specified by:
rowDeleted
in interface TableModificationListener
- Overrides:
rowDeleted
in class BaseTableModificationListener
- Throws:
AxionException
rowInserted
public void rowInserted(RowEvent event)
throws AxionException
- Specified by:
rowInserted
in interface TableModificationListener
- Overrides:
rowInserted
in class BaseTableModificationListener
- Throws:
AxionException
rowUpdated
public void rowUpdated(RowEvent event)
throws AxionException
- Specified by:
rowUpdated
in interface TableModificationListener
- Overrides:
rowUpdated
in class BaseTableModificationListener
- Throws:
AxionException
truncate
public void truncate()
throws AxionException
- Specified by:
truncate
in interface Index
- Specified by:
truncate
in class BaseIndex
- Throws:
AxionException