public class ListInfoHelper extends Object
| 构造器和说明 |
|---|
ListInfoHelper(ListInfo ls) |
ListInfoHelper(long totalCnt) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addId() |
void |
addMinMaxInfo(Long sectionNo,
Number min,
Number max) |
void |
addSection(Long sectionNo) |
void |
addSectionInfo(Long sectionNo,
Long sectionCnt) |
void |
decreateSize() |
Long |
getLatestSecIndex()
得到最新一页应该从数据库中那个位置加载的快捷方式
|
Long |
getLatestSecSize()
得到List,在缓存中最新一页所存放的数量,最新一页的容量可能不可能为0
|
ListInfo |
getListInfo() |
ListLoadInfo |
getListLoadInfo(Long start,
boolean forward)
得到应该从那个缓存分段的,那个位置开始加载
这里其实有很巧妙的思想 ,需要细细品味。
|
long |
getMaxSectionNo()
得到List 在缓存中的最大Page No
|
Number[] |
getMinMaxOfCross(Long sectionNo)
跨库聚合情况下,每个section 所对应的min,max值
|
long |
getNewMaxSectionNo() |
Long |
getSectionIndex(Long sectionNo)
得到List所对应的缓存中的某一段缓存,应该从数据库中那个位置开始加载
|
Long |
getSectionSize(Long sectionNo) |
int |
getSectionsSize()
得到用户访问过的缓存分页的 数量,
|
long |
getSize()
返回当前List的容量
|
Map<Long,Long> |
getVisitedSections()
返回用户访问过的缓存分段信息
|
void |
increaseSize() |
boolean |
isCrossAggrInfoBuild() |
boolean |
isLatestSection(Long sectionNo) |
boolean |
isLatestSecVisited() |
boolean |
isSectionMinMaxExist(Long sectionNo) |
boolean |
isSectionsReBuild()
用来判断是否需要把整个List的缓存清空
|
boolean |
isSectionsVistied() |
boolean |
isVisited() |
boolean |
isVisited(Long SectionNo) |
void |
removeId(Long sectionNo)
从section info中移除ID
|
void |
removeLastedVisitedSection() |
void |
removeSectionInfo(Long sectionNo) |
void |
setSize(long sizeNum) |
public ListInfoHelper(ListInfo ls)
public ListInfoHelper(long totalCnt)
public ListInfo getListInfo()
public boolean isVisited()
public boolean isSectionsVistied()
public boolean isVisited(Long SectionNo)
public boolean isCrossAggrInfoBuild()
public boolean isLatestSection(Long sectionNo)
public boolean isLatestSecVisited()
public int getSectionsSize()
public void removeSectionInfo(Long sectionNo)
public boolean isSectionMinMaxExist(Long sectionNo)
public void addId()
public void increaseSize()
public void addSection(Long sectionNo)
public void removeId(Long sectionNo)
sectionNo - public void decreateSize()
public long getMaxSectionNo()
public long getNewMaxSectionNo()
public Long getLatestSecSize()
public boolean isSectionsReBuild()
public Long getSectionIndex(Long sectionNo) throws Exception
sectionNo - Exceptionpublic Long getLatestSecIndex() throws Exception
Exceptionpublic ListLoadInfo getListLoadInfo(Long start, boolean forward) throws Exception
Exceptionpublic long getSize()
public void setSize(long sizeNum)
public void removeLastedVisitedSection()
Copyright © 2022. All rights reserved.