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, waitsearch, searchAllprotected 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
IndexExceptionpublic int getRow(java.lang.Object key)
throws IndexException
IndexgetRow 在接口中 Indexkey - 键值IndexExceptionpublic void build()
throws IndexException
build 在接口中 IndexIndexException - 异常public int[] getAllRow(java.lang.Object key)
throws IndexException
getAllRow 在接口中 IndexIndexExceptionpublic void setComparator(java.util.Comparator entryComparator)