public interface IndexResults extends cn.weforward.common.ResultPage<IndexResult>
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
OPTION_ORDER_BY_ASC
选项 - 顺序排序
|
static int |
OPTION_ORDER_BY_DESC
选项 - 倒序排序
|
| 限定符和类型 | 方法和说明 |
|---|---|
IndexResults |
snapshot()
产生一个快照(与当前互不影响)
|
void |
sort(String attribut,
int option)
对结果按属性排序(排序后影响已进行的翻页及迭代),注:旧的实现或数据不支持什么也不执行但不会抛出错误
|
getCount, getPage, getPageCount, getPageSize, gotoPage, hasPrev, move, prev, setPage, setPageSizeforEachRemaining, hasNext, next, removeforEach, iterator, spliteratorstatic final int OPTION_ORDER_BY_ASC
static final int OPTION_ORDER_BY_DESC
void sort(String attribut, int option)
attribut - 要排序的属性(必须在创建索引时在IndexElement指定)option - 选项 OPTION_ORDER_BY_ASC/OPTION_ORDER_BY_DESCIndexResults snapshot()
Copyright © 2021. All rights reserved.