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