public static class IndexResultsHelper.Singleton extends cn.weforward.common.util.ResultPageHelper.Singleton<IndexResult> implements IndexResults
OPTION_ORDER_BY_ASC, OPTION_ORDER_BY_DESC| 构造器和说明 |
|---|
Singleton(IndexResult element) |
| 限定符和类型 | 方法和说明 |
|---|---|
IndexResults |
snapshot()
产生一个快照(与当前互不影响)
|
void |
sort(String attribut,
int option)
对结果按属性排序(排序后影响已进行的翻页及迭代),注:旧的实现或数据不支持什么也不执行但不会抛出错误
|
getCount, getPage, getPageCount, getPageSize, gotoPage, hasNext, hasPrev, iterator, move, next, prev, remove, setPage, setPageSize, sortclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCount, getPage, getPageCount, getPageSize, gotoPage, hasPrev, move, prev, setPage, setPageSizeforEachRemaining, hasNext, next, removeforEach, iterator, spliteratorpublic Singleton(IndexResult element)
public void sort(String attribut, int option)
IndexResultssort 在接口中 IndexResultsattribut - 要排序的属性(必须在创建索引时在IndexElement指定)option - 选项 OPTION_ORDER_BY_ASC/OPTION_ORDER_BY_DESCpublic IndexResults snapshot()
IndexResultssnapshot 在接口中 IndexResultsCopyright © 2021. All rights reserved.