org.axiondb.engine.indexes
Class IntArrayIndex
java.lang.Object
org.axiondb.event.BaseTableModificationListener
org.axiondb.engine.indexes.BaseIndex
org.axiondb.engine.indexes.BaseArrayIndex
org.axiondb.engine.indexes.IntArrayIndex
- All Implemented Interfaces:
- TableModificationListener, Index
public class IntArrayIndex
- extends BaseArrayIndex
An array index
over integer keys.
- Version:
- $Revision: 1.4 $ $Date: 2005/03/12 02:10:41 $
Constructor Summary |
IntArrayIndex(java.lang.String name,
Column column,
boolean unique)
|
IntArrayIndex(java.lang.String name,
Column column,
boolean unique,
org.apache.commons.collections.primitives.IntList keys,
org.apache.commons.collections.primitives.IntList values)
|
Methods inherited from class org.axiondb.engine.indexes.BaseArrayIndex |
changeRowId, getInorderRowIterator, getRowIterator, getType, getValueList, rowDeleted, rowInserted, rowUpdated, save, saveAfterTruncate, supportsFunction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntArrayIndex
public IntArrayIndex(java.lang.String name,
Column column,
boolean unique)
IntArrayIndex
public IntArrayIndex(java.lang.String name,
Column column,
boolean unique,
org.apache.commons.collections.primitives.IntList keys,
org.apache.commons.collections.primitives.IntList values)
getIndexLoader
public IndexLoader getIndexLoader()
- Specified by:
getIndexLoader
in interface Index
- Specified by:
getIndexLoader
in class BaseArrayIndex
getKeyList
public java.util.List getKeyList()
- Specified by:
getKeyList
in class BaseArrayIndex
truncate
public void truncate()
throws AxionException
- Specified by:
truncate
in interface Index
- Overrides:
truncate
in class BaseArrayIndex
- Throws:
AxionException
find
protected int find(int seeking,
boolean required)
find
protected int find(java.lang.Object value,
boolean required)
- Specified by:
find
in class BaseArrayIndex
getKeyList
protected java.util.List getKeyList(int minIndex,
int maxIndex)
- Specified by:
getKeyList
in class BaseArrayIndex
insertKey
protected int insertKey(int seeking)
throws AxionException
- Throws:
AxionException
insertKey
protected int insertKey(java.lang.Object value)
throws AxionException
- Specified by:
insertKey
in class BaseArrayIndex
- Throws:
AxionException
removeKey
protected int removeKey(int seeking)
throws AxionException
- Throws:
AxionException
removeKey
protected int removeKey(java.lang.Object value)
throws AxionException
- Specified by:
removeKey
in class BaseArrayIndex
- Throws:
AxionException
removeKeyAt
protected void removeKeyAt(int index)
throws AxionException
- Specified by:
removeKeyAt
in class BaseArrayIndex
- Throws:
AxionException