public class IntBTreeIndex extends BaseBTreeIndex implements TableModificationListener
B-Tree index
over integer keys.Constructor and Description |
---|
IntBTreeIndex(java.lang.String name,
Column column,
boolean unique) |
IntBTreeIndex(java.lang.String name,
Column column,
boolean unique,
java.io.File dataDirectory) |
Modifier and Type | Method and Description |
---|---|
void |
changeRowId(Table table,
Row row,
int oldId,
int newId) |
IntBTree |
getBTree() |
IndexLoader |
getIndexLoader() |
RowIterator |
getInorderRowIterator(RowSource source)
Returns a
RowIterator which is inorder traversal of keys, |
RowIterator |
getRowIterator(RowSource source,
Function function,
java.lang.Object value)
Returns a
RowIterator over the indexed rows, limited by the given
ComparisonOperator /value pair, using the default sort order. |
void |
rowDeleted(RowEvent event) |
void |
rowInserted(RowEvent event) |
void |
rowUpdated(RowEvent event) |
void |
truncate() |
getType, save, saveAfterTruncate, supportsFunction
getComparator, getDataType, getIndexedColumn, getName, isUnique
columnAdded, constraintAdded, constraintRemoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
columnAdded, constraintAdded, constraintRemoved
getIndexedColumn, getName, isUnique
public IntBTreeIndex(java.lang.String name, Column column, boolean unique) throws AxionException
AxionException
public IntBTreeIndex(java.lang.String name, Column column, boolean unique, java.io.File dataDirectory) throws AxionException
AxionException
public void changeRowId(Table table, Row row, int oldId, int newId) throws AxionException
changeRowId
in interface Index
AxionException
public IntBTree getBTree()
public IndexLoader getIndexLoader()
getIndexLoader
in interface Index
getIndexLoader
in class BaseIndex
public final RowIterator getInorderRowIterator(RowSource source) throws AxionException
Index
RowIterator
which is inorder traversal of keys,getInorderRowIterator
in interface Index
getInorderRowIterator
in class BaseIndex
source
- table/view for which we need to get inorder traversalAxionException
public RowIterator getRowIterator(RowSource source, Function function, java.lang.Object value) throws AxionException
Index
RowIterator
over the indexed rows, limited by the given
ComparisonOperator
/value pair, using the default sort order.getRowIterator
in interface Index
getRowIterator
in class BaseIndex
value
- the value to compare the indexed column toAxionException
public void rowDeleted(RowEvent event) throws AxionException
rowDeleted
in interface TableModificationListener
rowDeleted
in class BaseTableModificationListener
AxionException
public void rowInserted(RowEvent event) throws AxionException
rowInserted
in interface TableModificationListener
rowInserted
in class BaseTableModificationListener
AxionException
public void rowUpdated(RowEvent event) throws AxionException
rowUpdated
in interface TableModificationListener
rowUpdated
in class BaseTableModificationListener
AxionException
public void truncate() throws AxionException
truncate
in interface Index
truncate
in class BaseIndex
AxionException