public final class PaginationContext extends Object
| 构造器和说明 |
|---|
PaginationContext(PaginationValueSegment offsetSegment,
PaginationValueSegment rowCountSegment,
List<Object> parameters) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getActualOffset()
Get actual offset.
|
com.google.common.base.Optional<Long> |
getActualRowCount()
Get actual row count.
|
com.google.common.base.Optional<Integer> |
getOffsetParameterIndex()
Get offset parameter index.
|
com.google.common.base.Optional<PaginationValueSegment> |
getOffsetSegment()
Get offset segment.
|
long |
getRevisedOffset()
Get revised offset.
|
long |
getRevisedRowCount(SelectSQLStatementContext shardingStatement)
Get revised row count.
|
com.google.common.base.Optional<Integer> |
getRowCountParameterIndex()
Get row count parameter index.
|
com.google.common.base.Optional<PaginationValueSegment> |
getRowCountSegment()
Get row count segment.
|
public PaginationContext(PaginationValueSegment offsetSegment, PaginationValueSegment rowCountSegment, List<Object> parameters)
public com.google.common.base.Optional<PaginationValueSegment> getOffsetSegment()
public com.google.common.base.Optional<PaginationValueSegment> getRowCountSegment()
public long getActualOffset()
public com.google.common.base.Optional<Long> getActualRowCount()
public com.google.common.base.Optional<Integer> getOffsetParameterIndex()
public com.google.common.base.Optional<Integer> getRowCountParameterIndex()
public long getRevisedOffset()
public long getRevisedRowCount(SelectSQLStatementContext shardingStatement)
shardingStatement - sharding optimized statementCopyright © 2019 The Apache Software Foundation. All rights reserved.