public abstract class AbstractHashIndex extends java.lang.Object implements IndexAbstract
限定符和类型 | 字段和说明 |
---|---|
protected int |
column |
protected DataModel |
dataModel |
protected java.util.HashMap<java.lang.Object,com.fr.data.index.hash.AbstractHashIndex.Entry> |
indexes |
protected boolean |
isBuild |
构造器和说明 |
---|
AbstractHashIndex() |
AbstractHashIndex(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所在的行
|
protected void |
setDataModel(DataModel dataModel,
int column) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
search, searchAll
protected DataModel dataModel
protected int column
protected boolean isBuild
protected java.util.HashMap<java.lang.Object,com.fr.data.index.hash.AbstractHashIndex.Entry> indexes
public AbstractHashIndex()
public AbstractHashIndex(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