|
||||||||||
| 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
public abstract class BaseIndex
Abstract base implementation of Index.
| Field Summary |
|---|
| Fields inherited from interface org.axiondb.Index |
|---|
ARRAY, BTREE, DEFAULT, TTREE |
| Constructor Summary | |
|---|---|
BaseIndex(java.lang.String name,
Column column,
boolean unique)
|
|
| Method Summary | |
|---|---|
protected java.util.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, |
java.lang.String |
getName()
Returns my name. |
abstract RowIterator |
getRowIterator(RowSource source,
Function fn,
java.lang.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(java.io.File dataDirectory)
|
abstract void |
saveAfterTruncate(java.io.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(java.lang.String name,
Column column,
boolean unique)
| Method Detail |
|---|
public Column getIndexedColumn()
Index
getIndexedColumn in interface Indexpublic abstract IndexLoader getIndexLoader()
getIndexLoader in interface Index
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
AxionExceptionpublic java.lang.String getName()
Index
getName in interface Index
public abstract RowIterator getRowIterator(RowSource source,
Function fn,
java.lang.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 boolean isUnique()
Index
isUnique in interface Index
public abstract void save(java.io.File dataDirectory)
throws AxionException
save in interface IndexAxionException
public abstract void saveAfterTruncate(java.io.File dataDirectory)
throws AxionException
saveAfterTruncate in interface IndexAxionExceptionpublic 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 truncate()
throws AxionException
truncate in interface IndexAxionExceptionprotected java.util.Comparator getComparator()
protected DataType getDataType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||