test_class.file: shardingsphere-sql-parser/shardingsphere-sql-parser-binder/src/test/java/org/apache/shardingsphere/sql/parser/binder/segment/select/pagination/PaginationContextTest.java
test_class.identifier: PaginationContextTest
test_case.body: @Test
      public void getRevisedRowCountForMySQL() {
          getRevisedRowCount(new MySQLSelectStatement());
      }
test_case.class_method_signature: PaginationContextTest.getRevisedRowCountForMySQL()
test_case.full_signature: @Test public void getRevisedRowCountForMySQL()
test_case.identifier: getRevisedRowCountForMySQL
test_case.invocations: getRevisedRowCount
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getRevisedRowCountForMySQL()
focal_class.declarator: hasPagination
focal_class.modifier: @Getter
      private final
focal_class.original_string: @Getter
      private final boolean hasPagination;
focal_class.type: boolean
focal_class.var_name: hasPagination
focal_class.declarator: offsetSegment
focal_class.modifier: private final
focal_class.original_string: private final PaginationValueSegment offsetSegment;
focal_class.type: PaginationValueSegment
focal_class.var_name: offsetSegment
focal_class.declarator: rowCountSegment
focal_class.modifier: private final
focal_class.original_string: private final PaginationValueSegment rowCountSegment;
focal_class.type: PaginationValueSegment
focal_class.var_name: rowCountSegment
focal_class.declarator: actualOffset
focal_class.modifier: private final
focal_class.original_string: private final long actualOffset;
focal_class.type: long
focal_class.var_name: actualOffset
focal_class.declarator: actualRowCount
focal_class.modifier: private final
focal_class.original_string: private final Long actualRowCount;
focal_class.type: Long
focal_class.var_name: actualRowCount
focal_class.file: shardingsphere-sql-parser/shardingsphere-sql-parser-binder/src/main/java/org/apache/shardingsphere/sql/parser/binder/segment/select/pagination/PaginationContext.java
focal_class.identifier: PaginationContext
focal_class.class_method_signature: PaginationContext.PaginationContext(final PaginationValueSegment offsetSegment, final PaginationValueSegment rowCountSegment, final List<Object> parameters)
focal_class.full_signature: public  PaginationContext(final PaginationValueSegment offsetSegment, final PaginationValueSegment rowCountSegment, final List<Object> parameters)
focal_class.identifier: PaginationContext
focal_class.modifiers: public
focal_class.parameters: (final PaginationValueSegment offsetSegment, final PaginationValueSegment rowCountSegment, final List<Object> parameters)
focal_class.signature:  PaginationContext(final PaginationValueSegment offsetSegment, final PaginationValueSegment rowCountSegment, final List<Object> parameters)
focal_class.class_method_signature: PaginationContext.getValue(final PaginationValueSegment paginationValueSegment, final List<Object> parameters)
focal_class.full_signature: private long getValue(final PaginationValueSegment paginationValueSegment, final List<Object> parameters)
focal_class.identifier: getValue
focal_class.modifiers: private
focal_class.parameters: (final PaginationValueSegment paginationValueSegment, final List<Object> parameters)
focal_class.return: long
focal_class.signature: long getValue(final PaginationValueSegment paginationValueSegment, final List<Object> parameters)
focal_class.class_method_signature: PaginationContext.getOffsetSegment()
focal_class.full_signature: public Optional<PaginationValueSegment> getOffsetSegment()
focal_class.identifier: getOffsetSegment
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Optional<PaginationValueSegment>
focal_class.signature: Optional<PaginationValueSegment> getOffsetSegment()
focal_class.class_method_signature: PaginationContext.getRowCountSegment()
focal_class.full_signature: public Optional<PaginationValueSegment> getRowCountSegment()
focal_class.identifier: getRowCountSegment
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Optional<PaginationValueSegment>
focal_class.signature: Optional<PaginationValueSegment> getRowCountSegment()
focal_class.class_method_signature: PaginationContext.getActualOffset()
focal_class.full_signature: public long getActualOffset()
focal_class.identifier: getActualOffset
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getActualOffset()
focal_class.class_method_signature: PaginationContext.getActualRowCount()
focal_class.full_signature: public Optional<Long> getActualRowCount()
focal_class.identifier: getActualRowCount
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Optional<Long>
focal_class.signature: Optional<Long> getActualRowCount()
focal_class.class_method_signature: PaginationContext.getOffsetParameterIndex()
focal_class.full_signature: public Optional<Integer> getOffsetParameterIndex()
focal_class.identifier: getOffsetParameterIndex
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Optional<Integer>
focal_class.signature: Optional<Integer> getOffsetParameterIndex()
focal_class.class_method_signature: PaginationContext.getRowCountParameterIndex()
focal_class.full_signature: public Optional<Integer> getRowCountParameterIndex()
focal_class.identifier: getRowCountParameterIndex
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Optional<Integer>
focal_class.signature: Optional<Integer> getRowCountParameterIndex()
focal_class.class_method_signature: PaginationContext.getRevisedOffset()
focal_class.full_signature: public long getRevisedOffset()
focal_class.identifier: getRevisedOffset
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getRevisedOffset()
focal_class.class_method_signature: PaginationContext.getRevisedRowCount(final SelectStatementContext selectStatementContext)
focal_class.full_signature: public long getRevisedRowCount(final SelectStatementContext selectStatementContext)
focal_class.identifier: getRevisedRowCount
focal_class.modifiers: public
focal_class.parameters: (final SelectStatementContext selectStatementContext)
focal_class.return: long
focal_class.signature: long getRevisedRowCount(final SelectStatementContext selectStatementContext)
focal_class.class_method_signature: PaginationContext.isMaxRowCount(final SelectStatementContext selectStatementContext)
focal_class.full_signature: private boolean isMaxRowCount(final SelectStatementContext selectStatementContext)
focal_class.identifier: isMaxRowCount
focal_class.modifiers: private
focal_class.parameters: (final SelectStatementContext selectStatementContext)
focal_class.return: boolean
focal_class.signature: boolean isMaxRowCount(final SelectStatementContext selectStatementContext)
focal_method.body: public long getRevisedRowCount(final SelectStatementContext selectStatementContext) {
          if (isMaxRowCount(selectStatementContext)) {
              return Integer.MAX_VALUE;
          }
          return rowCountSegment instanceof LimitValueSegment ? actualOffset + actualRowCount : actualRowCount;
      }
focal_method.class_method_signature: PaginationContext.getRevisedRowCount(final SelectStatementContext selectStatementContext)
focal_method.full_signature: public long getRevisedRowCount(final SelectStatementContext selectStatementContext)
focal_method.identifier: getRevisedRowCount
focal_method.invocations: isMaxRowCount
focal_method.modifiers: public
focal_method.parameters: (final SelectStatementContext selectStatementContext)
focal_method.return: long
focal_method.signature: long getRevisedRowCount(final SelectStatementContext selectStatementContext)