public class IntBTreeIndex extends BaseBTreeIndex implements TableModificationListener
B-Tree indexover 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
RowIteratorwhich is inorder traversal of keys, |
RowIterator |
getRowIterator(RowSource source,
Function function,
java.lang.Object value)
Returns a
RowIteratorover 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, supportsFunctiongetComparator, getDataType, getIndexedColumn, getName, isUniquecolumnAdded, constraintAdded, constraintRemovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcolumnAdded, constraintAdded, constraintRemovedgetIndexedColumn, getName, isUniquepublic IntBTreeIndex(java.lang.String name,
Column column,
boolean unique)
throws AxionException
AxionExceptionpublic IntBTreeIndex(java.lang.String name,
Column column,
boolean unique,
java.io.File dataDirectory)
throws AxionException
AxionExceptionpublic void changeRowId(Table table, Row row, int oldId, int newId) throws AxionException
changeRowId in interface IndexAxionExceptionpublic IntBTree getBTree()
public IndexLoader getIndexLoader()
getIndexLoader in interface IndexgetIndexLoader in class BaseIndexpublic final RowIterator getInorderRowIterator(RowSource source) throws AxionException
IndexRowIteratorwhich is inorder traversal of keys,getInorderRowIterator in interface IndexgetInorderRowIterator in class BaseIndexsource - table/view for which we need to get inorder traversalAxionExceptionpublic RowIterator getRowIterator(RowSource source, Function function, java.lang.Object value) throws AxionException
IndexRowIteratorover the indexed rows, limited by the given
ComparisonOperator/value pair, using the default sort order.getRowIterator in interface IndexgetRowIterator in class BaseIndexvalue - the value to compare the indexed column toAxionExceptionpublic void rowDeleted(RowEvent event) throws AxionException
rowDeleted in interface TableModificationListenerrowDeleted in class BaseTableModificationListenerAxionExceptionpublic void rowInserted(RowEvent event) throws AxionException
rowInserted in interface TableModificationListenerrowInserted in class BaseTableModificationListenerAxionExceptionpublic void rowUpdated(RowEvent event) throws AxionException
rowUpdated in interface TableModificationListenerrowUpdated in class BaseTableModificationListenerAxionExceptionpublic void truncate()
throws AxionException
truncate in interface Indextruncate in class BaseIndexAxionException