org.axiondb
public interface Index extends TableModificationListener
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 $
Field Summary | |
---|---|
static String | ARRAY |
static String | BTREE |
static String | DEFAULT |
static String | TTREE |
Method Summary | |
---|---|
void | changeRowId(Table table, Row row, int oldId, int newId) |
Column | getIndexedColumn()
Returns the column I index. |
IndexLoader | getIndexLoader() |
RowIterator | getInorderRowIterator(RowSource source)
Returns a RowIteratorwhich is inorder traversal of keys,
|
String | getName()
Returns my name. |
RowIterator | getRowIterator(RowSource source, Function fn, Object value)
Returns a RowIteratorover 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
can support the given operator, false otherwise. |
void | truncate() |
Parameters: source table/view for which we need to get inorder traversal
Returns:
Throws: AxionException
Parameters: operator the ComparisonOperatorto apply value the value to compare the indexed column to