public class PagingInfo extends Object
Constructor and Description |
---|
PagingInfo(int dataSize)
Construct a PagingInfo with start = 0 and no limit.
|
PagingInfo(int start,
int limit,
int dataSize)
Construct a PagingInfo with start index and limit.
|
Modifier and Type | Method and Description |
---|---|
int |
getCutoffStart()
Return how many entries under the first node is cut off.
|
int |
getDataSize()
Get data size on this rank.
|
int |
getEnd()
Get the end index of this page, exclusively.
|
int |
getLimit()
Get page size.
|
int |
getNaiveCutoffEnd()
Return how many entries under the last node is cut off.
|
int |
getNodeEnd()
Get the end index of node, exclusively.
|
int |
getNodeLimit()
Get the number of nodes involved in current page, including those
partially shown.
|
int |
getNodeStart()
Get the start index of node rather then entries.
|
int |
getPagedSize(int size)
Return row/column numbers cropped by paging.
|
int |
getRealCutoffEnd(int realNodeSize)
Return how many entries under the last node is cut off.
|
int |
getStart()
Get start index of current page.
|
boolean |
isLimited()
Return true if the paging has a limit
|
public PagingInfo(int dataSize)
public PagingInfo(int start, int limit, int dataSize)
public int getDataSize()
public int getStart()
public int getLimit()
public int getEnd()
public boolean isLimited()
public int getNodeStart()
public int getNodeLimit()
public int getNodeEnd()
public int getCutoffStart()
public int getNaiveCutoffEnd()
public int getRealCutoffEnd(int realNodeSize)
realNodeSize
- the real number of nodes involved in this page. As
we do not know anything about the tree, we have to pass in this
information to know the real cut-off value.public int getPagedSize(int size)
Copyright © 2017. All rights reserved.