public class ObjectBTreeIndex extends BaseBTreeIndex implements TableModificationListener
B-Tree indexover Object keys.| Modifier and Type | Field and Description |
|---|---|
protected int |
_minimizationFactor |
| Constructor and Description |
|---|
ObjectBTreeIndex(java.lang.String name,
Column column,
boolean unique) |
ObjectBTreeIndex(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) |
protected ObjectBTree |
createTree(java.io.File dataDirectory,
java.lang.String name,
int minimizationFactor,
DataType dataType) |
ObjectBTree |
getBTree() |
IndexLoader |
getIndexLoader() |
RowIterator |
getInorderRowIterator(RowSource source)
Returns a
RowIteratorwhich is inorder traversal of keys, |
protected java.lang.Object |
getNullKey() |
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 ObjectBTreeIndex(java.lang.String name,
Column column,
boolean unique)
throws AxionException
AxionExceptionpublic ObjectBTreeIndex(java.lang.String name,
Column column,
boolean unique,
java.io.File dataDirectory)
throws AxionException
AxionExceptionpublic final void changeRowId(Table table, Row row, int oldId, int newId) throws AxionException
changeRowId in interface IndexAxionExceptionpublic final ObjectBTree 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 final 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 final void rowDeleted(RowEvent event) throws AxionException
rowDeleted in interface TableModificationListenerrowDeleted in class BaseTableModificationListenerAxionExceptionpublic final void rowInserted(RowEvent event) throws AxionException
rowInserted in interface TableModificationListenerrowInserted in class BaseTableModificationListenerAxionExceptionpublic final void rowUpdated(RowEvent event) throws AxionException
rowUpdated in interface TableModificationListenerrowUpdated in class BaseTableModificationListenerAxionExceptionpublic void truncate()
throws AxionException
truncate in interface Indextruncate in class BaseIndexAxionExceptionprotected ObjectBTree createTree(java.io.File dataDirectory, java.lang.String name, int minimizationFactor, DataType dataType) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionprotected java.lang.Object getNullKey()