|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 RowIterator which is inorder traversal of keys, |
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 #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 |
public static final String BTREE
public static final String ARRAY
public static final String DEFAULT
Method Detail |
public void changeRowId(Table table, Row row, int oldId, int newId) throws AxionException
AxionException
public Column getIndexedColumn()
public IndexLoader getIndexLoader()
public RowIterator getInorderRowIterator(RowSource source) throws AxionException
RowIterator
which is inorder traversal of keys,
source
- table/view for which we need to get inorder traversal
AxionException
public String getName()
public String getType()
public RowIterator getRowIterator(RowSource source, Function fn, Object value) throws AxionException
RowIterator
over the indexed rows, limited by the given
ComparisonOperator
/value pair, using the default sort order.
value
- the value to compare the indexed column to
AxionException
public boolean isUnique()
public void save(File dataDirectory) throws AxionException
AxionException
public void saveAfterTruncate(File dataDirectory) throws AxionException
AxionException
public boolean supportsFunction(Function fn)
#getRowIterator(org.axiondb.RowSource,org.axiondb.ComparisonOperator,java.lang.Object)
can support the given operator, false otherwise.
public void truncate() throws AxionException
AxionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |