test_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/pagination/TopAndRowNumberDecoratorMergedResultTest.java
test_class.identifier: TopAndRowNumberDecoratorMergedResultTest
test_case.body: @Test
      public void assertNextForSkipAll() throws SQLException {
          SelectStatementContext selectStatementContext = new SelectStatementContext(new SQLServerSelectStatement(), 
                  new GroupByContext(Collections.emptyList(), 0), new OrderByContext(Collections.emptyList(), false), 
                  new ProjectionsContext(0, 0, false, Collections.emptyList()),
                  new PaginationContext(new NumberLiteralRowNumberValueSegment(0, 0, Integer.MAX_VALUE, true), null, Collections.emptyList()));
          ShardingDQLResultMerger resultMerger = new ShardingDQLResultMerger(DatabaseTypes.getActualDatabaseType("SQLServer"));
          MergedResult actual = resultMerger.merge(Arrays.asList(createQueryResult(), createQueryResult(), createQueryResult(), createQueryResult()), selectStatementContext, null);
          assertFalse(actual.next());
      }
test_case.class_method_signature: TopAndRowNumberDecoratorMergedResultTest.assertNextForSkipAll()
test_case.full_signature: @Test public void assertNextForSkipAll()
test_case.identifier: assertNextForSkipAll
test_case.invocations: emptyList emptyList emptyList emptyList getActualDatabaseType merge asList createQueryResult createQueryResult createQueryResult createQueryResult assertFalse next
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertNextForSkipAll()
focal_class.declarator: pagination
focal_class.modifier: private final
focal_class.original_string: private final PaginationContext pagination;
focal_class.type: PaginationContext
focal_class.var_name: pagination
focal_class.declarator: skipAll
focal_class.modifier: private final
focal_class.original_string: private final boolean skipAll;
focal_class.type: boolean
focal_class.var_name: skipAll
focal_class.declarator: rowNumber
focal_class.modifier: private
focal_class.original_string: private long rowNumber;
focal_class.type: long
focal_class.var_name: rowNumber
focal_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/pagination/TopAndRowNumberDecoratorMergedResult.java
focal_class.identifier: TopAndRowNumberDecoratorMergedResult
focal_class.class_method_signature: TopAndRowNumberDecoratorMergedResult.TopAndRowNumberDecoratorMergedResult(final MergedResult mergedResult, final PaginationContext pagination)
focal_class.full_signature: public  TopAndRowNumberDecoratorMergedResult(final MergedResult mergedResult, final PaginationContext pagination)
focal_class.identifier: TopAndRowNumberDecoratorMergedResult
focal_class.modifiers: public
focal_class.parameters: (final MergedResult mergedResult, final PaginationContext pagination)
focal_class.signature:  TopAndRowNumberDecoratorMergedResult(final MergedResult mergedResult, final PaginationContext pagination)
focal_class.class_method_signature: TopAndRowNumberDecoratorMergedResult.skipOffset()
focal_class.full_signature: private boolean skipOffset()
focal_class.identifier: skipOffset
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean skipOffset()
focal_class.class_method_signature: TopAndRowNumberDecoratorMergedResult.next()
focal_class.full_signature: @Override public boolean next()
focal_class.identifier: next
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean next()
focal_class.superclass: extends DecoratorMergedResult
focal_method.body: @Override
      public boolean next() throws SQLException {
          if (skipAll) {
              return false;
          }
          if (!pagination.getActualRowCount().isPresent()) {
              return getMergedResult().next();
          }
          return rowNumber++ <= pagination.getActualRowCount().get() && getMergedResult().next();
      }
focal_method.class_method_signature: TopAndRowNumberDecoratorMergedResult.next()
focal_method.full_signature: @Override public boolean next()
focal_method.identifier: next
focal_method.invocations: isPresent getActualRowCount next getMergedResult get getActualRowCount next getMergedResult
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: boolean
focal_method.signature: boolean next()