|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.axiondb.event.BaseTableModificationListener
org.axiondb.engine.indexes.BaseIndex
Abstract base implementation of Index.
| Field Summary |
| Fields inherited from interface org.axiondb.Index |
ARRAY, BTREE, DEFAULT |
| Constructor Summary | |
BaseIndex(String name,
Column column,
boolean unique)
|
|
| Method Summary | |
protected Comparator |
getComparator()
|
protected DataType |
getDataType()
|
Column |
getIndexedColumn()
Returns the column I index. |
abstract IndexLoader |
getIndexLoader()
|
abstract RowIterator |
getInorderRowIterator(RowSource source)
Returns a RowIteratorwhich is inorder traversal of keys, |
String |
getName()
Returns my name. |
abstract 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. |
boolean |
isUnique()
Whether or not I allow duplicate values. |
abstract void |
save(File dataDirectory)
|
abstract void |
saveAfterTruncate(File dataDirectory)
|
abstract boolean |
supportsFunction(Function fn)
Returns true iff #getRowIterator(org.axiondb.RowSource,org.axiondb.ComparisonOperator,java.lang.Object)
can support the given operator, false otherwise. |
abstract void |
truncate()
|
| Methods inherited from class org.axiondb.event.BaseTableModificationListener |
columnAdded, constraintAdded, constraintRemoved, rowDeleted, rowInserted, rowUpdated |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.axiondb.Index |
changeRowId, getType |
| Methods inherited from interface org.axiondb.event.TableModificationListener |
columnAdded, constraintAdded, constraintRemoved, rowDeleted, rowInserted, rowUpdated |
| Constructor Detail |
public BaseIndex(String name,
Column column,
boolean unique)
| Method Detail |
public String getName()
Index
getName in interface Indexpublic Column getIndexedColumn()
Index
getIndexedColumn in interface Indexpublic boolean isUnique()
Index
isUnique in interface Index
public abstract void truncate()
throws AxionException
truncate in interface IndexAxionException
public abstract RowIterator getRowIterator(RowSource source,
Function fn,
Object value)
throws AxionException
IndexRowIteratorover the indexed rows, limited by the given
ComparisonOperator/value pair, using the default sort order.
getRowIterator in interface Indexvalue - the value to compare the indexed column to
AxionExceptionpublic abstract boolean supportsFunction(Function fn)
Index#getRowIterator(org.axiondb.RowSource,org.axiondb.ComparisonOperator,java.lang.Object)
can support the given operator, false otherwise.
supportsFunction in interface Index
public abstract void save(File dataDirectory)
throws AxionException
save in interface IndexAxionException
public abstract void saveAfterTruncate(File dataDirectory)
throws AxionException
saveAfterTruncate in interface IndexAxionExceptionpublic abstract IndexLoader getIndexLoader()
getIndexLoader in interface Indexprotected DataType getDataType()
protected Comparator getComparator()
public abstract RowIterator getInorderRowIterator(RowSource source)
throws AxionException
IndexRowIteratorwhich is inorder traversal of keys,
getInorderRowIterator in interface Indexsource - table/view for which we need to get inorder traversal
AxionException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||