|
|||||||||||
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 RowIterator which is inorder traversal of keys, |
String |
getName()
Returns my name. |
abstract 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. |
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 Index
public Column getIndexedColumn()
Index
getIndexedColumn
in interface Index
public boolean isUnique()
Index
isUnique
in interface Index
public abstract void truncate() throws AxionException
truncate
in interface Index
AxionException
public abstract RowIterator getRowIterator(RowSource source, Function fn, Object value) throws AxionException
Index
RowIterator
over the indexed rows, limited by the given
ComparisonOperator
/value pair, using the default sort order.
getRowIterator
in interface Index
value
- the value to compare the indexed column to
AxionException
public 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 Index
AxionException
public abstract void saveAfterTruncate(File dataDirectory) throws AxionException
saveAfterTruncate
in interface Index
AxionException
public abstract IndexLoader getIndexLoader()
getIndexLoader
in interface Index
protected DataType getDataType()
protected Comparator getComparator()
public abstract RowIterator getInorderRowIterator(RowSource source) throws AxionException
Index
RowIterator
which is inorder traversal of keys,
getInorderRowIterator
in interface Index
source
- 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 |