public abstract class AbstractIndex extends java.lang.Object implements IndexAbstract
限定符和类型 | 字段和说明 |
---|---|
protected int |
column |
protected DataModel |
dataModel |
protected com.fr.data.index.EntryComparator |
entryComparator |
protected com.fr.data.index.Entry[] |
indexes |
protected boolean |
isBuild |
构造器和说明 |
---|
AbstractIndex() |
AbstractIndex(DataModel dataModel,
int column) |
限定符和类型 | 方法和说明 |
---|---|
void |
build()
建立索引
|
protected abstract void |
buildIndex() |
protected void |
extractIndex() |
int[] |
getAllRow(java.lang.Object key) |
int |
getRow(java.lang.Object key)
获取key所在的行
|
void |
setComparator(java.util.Comparator entryComparator) |
protected void |
setDataModel(DataModel dataModel,
int column) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
search, searchAll
protected com.fr.data.index.EntryComparator entryComparator
protected DataModel dataModel
protected int column
protected boolean isBuild
protected com.fr.data.index.Entry[] indexes
public AbstractIndex()
public AbstractIndex(DataModel dataModel, int column)
protected void setDataModel(DataModel dataModel, int column)
protected void extractIndex() throws TableDataException
protected abstract void buildIndex() throws IndexException
IndexException
public int getRow(java.lang.Object key) throws IndexException
Index
getRow
在接口中 Index
key
- 键值IndexException
public void build() throws IndexException
build
在接口中 Index
IndexException
- 异常public int[] getAllRow(java.lang.Object key) throws IndexException
getAllRow
在接口中 Index
IndexException
public void setComparator(java.util.Comparator entryComparator)