public static class PagingCursor.Rows extends Object
Constructor and Description |
---|
Rows(long totalRows,
long maxRows,
long skipRows,
boolean zeroBasedRow)
Create a Rows based Cursor
|
Modifier and Type | Method and Description |
---|---|
long |
getEndRow()
Gets the end row within collection for this page
|
long |
getMaxRows()
Gets the maximum number of rows to include in this page
|
long |
getNextSkipRows()
Gets the next skip count
|
long |
getSkipRows()
Gets the number rows skipped
|
long |
getStartRow()
Gets the start row within collection for this page
|
long |
getTotalRows()
Gets the total number of rows
|
boolean |
isInRange()
Is the cursor within range of the total number of rows
|
public Rows(long totalRows, long maxRows, long skipRows, boolean zeroBasedRow)
totalRows
- total rows in collectionmaxRows
- maximum number of rows in pageskipRows
- number of rows to skip (0 - none)zeroBasedRow
- true => 0 based, false => 1 basedpublic long getTotalRows()
public long getSkipRows()
public long getMaxRows()
public boolean isInRange()
public long getStartRow()
public long getEndRow()
public long getNextSkipRows()
Copyright © 2005–2017 Alfresco Software. All rights reserved.