public class DefaultIndexDataModel extends AbstractIndexDataModel
dataModel
NOT_CONTAINS
COLUMN_NAME_NOT_FOUND, EMPTY_DATAMODEL
构造器和说明 |
---|
DefaultIndexDataModel(DataModel dataModel) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
buildIndex(int column) |
int[] |
getAllRowByKey(java.lang.Object key,
int column) |
protected Index |
getIndex(int column) |
int |
getRowByKey(java.lang.Object key,
int column)
根据键值获取行号
|
void |
setIndex(int column,
Index index)
设置第几列的索引实现方式
|
getColumnCount, getColumnName, getRowCount, getValueAt, release, setDataModel
getColumnIndex, getDataIterator, getIteratorDataByColumn, getMetric, hasRow
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColumnIndex, getDataIterator, getIteratorDataByColumn, getMetric, hasRow
public DefaultIndexDataModel(DataModel dataModel)
protected void buildIndex(int column)
public void setIndex(int column, Index index)
IndexDataModel
column
- 第几列index
- 索引对象protected Index getIndex(int column)
public int getRowByKey(java.lang.Object key, int column) throws IndexException
IndexDataModel
key
- 键值column
- 键值所在的列IndexException
public int[] getAllRowByKey(java.lang.Object key, int column) throws IndexException
IndexException