|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Index
A database index. (Right now, this class assumes an Index over a single column. Multipart indices will come later.)
| Field Summary | |
|---|---|
static String |
ARRAY
|
static String |
BTREE
|
static String |
DEFAULT
|
| 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 #getRowIterator(org.axiondb.RowSource,org.axiondb.ComparisonOperator,java.lang.Object)
can support the given operator, false otherwise. |
void |
truncate()
|
| Methods inherited from interface org.axiondb.event.TableModificationListener |
|---|
columnAdded, constraintAdded, constraintRemoved, rowDeleted, rowInserted, rowUpdated |
| Field Detail |
|---|
static final String BTREE
static final String ARRAY
static final String DEFAULT
| Method Detail |
|---|
void changeRowId(Table table,
Row row,
int oldId,
int newId)
throws AxionException
AxionExceptionColumn getIndexedColumn()
IndexLoader getIndexLoader()
RowIterator getInorderRowIterator(RowSource source)
throws AxionException
RowIteratorwhich is inorder traversal of keys,
source - table/view for which we need to get inorder traversal
AxionExceptionString getName()
String getType()
RowIterator getRowIterator(RowSource source,
Function fn,
Object value)
throws AxionException
RowIteratorover the indexed rows, limited by the given
ComparisonOperator/value pair, using the default sort order.
operator - the ComparisonOperatorto applyvalue - the value to compare the indexed column to
AxionExceptionboolean isUnique()
void save(File dataDirectory)
throws AxionException
AxionException
void saveAfterTruncate(File dataDirectory)
throws AxionException
AxionExceptionboolean supportsFunction(Function fn)
#getRowIterator(org.axiondb.RowSource,org.axiondb.ComparisonOperator,java.lang.Object)
can support the given operator, false otherwise.
void truncate()
throws AxionException
AxionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||