| org.axiondb.Index
All known Subclasses: org.axiondb.ext.indexes.ttree.MemoryTTreeIndex, org.axiondb.engine.indexes.BaseBTreeIndex, org.axiondb.engine.indexes.BaseIndex, org.axiondb.ext.indexes.ttree.TTreeIndex, org.axiondb.ext.indexes.ttree.DiskTTreeIndex, org.axiondb.engine.indexes.BaseArrayIndex,
Index | public interface Index extends TableModificationListener(Code) | | A database index. (Right now, this class assumes an Index over a single column.
Multipart indices will come later.)
TODO: Support expression and/or function e.g UPPER(name)
TODO: Support for Multi column index, very useful for composite keys
version: $Revision: 1.22 $ $Date: 2005/12/20 18:32:40 $ author: Morgan Delagrange author: Rodney Waldhoff author: Chuck Burdick author: Ahimanikya Satapathy |
Method Summary | |
void | changeRowId(Table table, Row row, int oldId, int newId) | IndexLoader | getIndexLoader() | Column | getIndexedColumn() Returns the column I index. | RowIterator | getInorderRowIterator(RowSource source) | String | getName() Returns my name. | RowIterator | getRowIterator(RowSource source, Function fn, Object value) Returns a
RowIterator over the indexed rows, limited by the given
ComparisonOperator /value pair, using the default sort order. | String | getType() Returns my type. | boolean | isUnique() Whether or not I allow duplicate values. | void | save(File dataDirectory) | void | saveAfterTruncate(File dataDirectory) | boolean | supportsFunction(Function fn) Returns true iff
Index.getRowIterator(org.axiondb.RowSource,org.axiondb.ComparisonOperator,java.lang.Object) can support the given operator, false otherwise. | void | truncate() |
getIndexedColumn | Column getIndexedColumn()(Code) | | Returns the column I index.
|
getRowIterator | RowIterator getRowIterator(RowSource source, Function fn, Object value) throws AxionException(Code) | | Returns a
RowIterator over the indexed rows, limited by the given
ComparisonOperator /value pair, using the default sort order.
Parameters: operator - the ComparisonOperatorto apply Parameters: value - the value to compare the indexed column to |
isUnique | boolean isUnique()(Code) | | Whether or not I allow duplicate values.
|
|
|