test_class.declarator: ROW_NUMBER_COLUMN_NAME = "rownum"
test_class.modifier: private static final
test_class.original_string: private static final String ROW_NUMBER_COLUMN_NAME = "rownum";
test_class.type: String
test_class.var_name: ROW_NUMBER_COLUMN_NAME
test_class.declarator: ROW_NUMBER_COLUMN_ALIAS = "predicateRowNumberAlias"
test_class.modifier: private static final
test_class.original_string: private static final String ROW_NUMBER_COLUMN_ALIAS = "predicateRowNumberAlias";
test_class.type: String
test_class.var_name: ROW_NUMBER_COLUMN_ALIAS
test_class.file: shardingsphere-sql-parser/shardingsphere-sql-parser-binder/src/test/java/org/apache/shardingsphere/sql/parser/binder/segment/select/pagination/engine/RowNumberPaginationContextEngineTest.java
test_class.identifier: RowNumberPaginationContextEngineTest
test_case.body: @Test
      public void assertCreatePaginationContextWhenRowNumberAliasNotPresent() {
          ProjectionsContext projectionsContext = new ProjectionsContext(0, 0, false, Collections.emptyList());
          PaginationContext paginationContext = new RowNumberPaginationContextEngine().createPaginationContext(null, projectionsContext, Collections.emptyList());
          assertFalse(paginationContext.getOffsetSegment().isPresent());
          assertFalse(paginationContext.getRowCountSegment().isPresent());
      }
test_case.class_method_signature: RowNumberPaginationContextEngineTest.assertCreatePaginationContextWhenRowNumberAliasNotPresent()
test_case.full_signature: @Test public void assertCreatePaginationContextWhenRowNumberAliasNotPresent()
test_case.identifier: assertCreatePaginationContextWhenRowNumberAliasNotPresent
test_case.invocations: emptyList createPaginationContext emptyList assertFalse isPresent getOffsetSegment assertFalse isPresent getRowCountSegment
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertCreatePaginationContextWhenRowNumberAliasNotPresent()
focal_class.declarator: ROW_NUMBER_IDENTIFIERS = new HashSet<>()
focal_class.modifier: private static final
focal_class.original_string: private static final Collection<String> ROW_NUMBER_IDENTIFIERS = new HashSet<>();
focal_class.type: Collection<String>
focal_class.var_name: ROW_NUMBER_IDENTIFIERS
focal_class.file: shardingsphere-sql-parser/shardingsphere-sql-parser-binder/src/main/java/org/apache/shardingsphere/sql/parser/binder/segment/select/pagination/engine/RowNumberPaginationContextEngine.java
focal_class.identifier: RowNumberPaginationContextEngine
focal_class.class_method_signature: RowNumberPaginationContextEngine.createPaginationContext(final ExpressionSegment where, final ProjectionsContext projectionsContext, final List<Object> parameters)
focal_class.full_signature: public PaginationContext createPaginationContext(final ExpressionSegment where, final ProjectionsContext projectionsContext, final List<Object> parameters)
focal_class.identifier: createPaginationContext
focal_class.modifiers: public
focal_class.parameters: (final ExpressionSegment where, final ProjectionsContext projectionsContext, final List<Object> parameters)
focal_class.return: PaginationContext
focal_class.signature: PaginationContext createPaginationContext(final ExpressionSegment where, final ProjectionsContext projectionsContext, final List<Object> parameters)
focal_class.class_method_signature: RowNumberPaginationContextEngine.getRowNumberPredicates(final Collection<AndPredicate> andPredicates, final String rowNumberAlias)
focal_class.full_signature: private Collection<BinaryOperationExpression> getRowNumberPredicates(final Collection<AndPredicate> andPredicates, final String rowNumberAlias)
focal_class.identifier: getRowNumberPredicates
focal_class.modifiers: private
focal_class.parameters: (final Collection<AndPredicate> andPredicates, final String rowNumberAlias)
focal_class.return: Collection<BinaryOperationExpression>
focal_class.signature: Collection<BinaryOperationExpression> getRowNumberPredicates(final Collection<AndPredicate> andPredicates, final String rowNumberAlias)
focal_class.class_method_signature: RowNumberPaginationContextEngine.isRowNumberAlias(final ProjectionsContext projectionsContext)
focal_class.full_signature: private Optional<String> isRowNumberAlias(final ProjectionsContext projectionsContext)
focal_class.identifier: isRowNumberAlias
focal_class.modifiers: private
focal_class.parameters: (final ProjectionsContext projectionsContext)
focal_class.return: Optional<String>
focal_class.signature: Optional<String> isRowNumberAlias(final ProjectionsContext projectionsContext)
focal_class.class_method_signature: RowNumberPaginationContextEngine.isRowNumberColumn(final ExpressionSegment predicate, final String rowNumberAlias)
focal_class.full_signature: private boolean isRowNumberColumn(final ExpressionSegment predicate, final String rowNumberAlias)
focal_class.identifier: isRowNumberColumn
focal_class.modifiers: private
focal_class.parameters: (final ExpressionSegment predicate, final String rowNumberAlias)
focal_class.return: boolean
focal_class.signature: boolean isRowNumberColumn(final ExpressionSegment predicate, final String rowNumberAlias)
focal_class.class_method_signature: RowNumberPaginationContextEngine.isCompareCondition(final ExpressionSegment predicate)
focal_class.full_signature: private boolean isCompareCondition(final ExpressionSegment predicate)
focal_class.identifier: isCompareCondition
focal_class.modifiers: private
focal_class.parameters: (final ExpressionSegment predicate)
focal_class.return: boolean
focal_class.signature: boolean isCompareCondition(final ExpressionSegment predicate)
focal_class.class_method_signature: RowNumberPaginationContextEngine.createPaginationWithRowNumber(final Collection<BinaryOperationExpression> rowNumberPredicates, final List<Object> parameters)
focal_class.full_signature: private PaginationContext createPaginationWithRowNumber(final Collection<BinaryOperationExpression> rowNumberPredicates, final List<Object> parameters)
focal_class.identifier: createPaginationWithRowNumber
focal_class.modifiers: private
focal_class.parameters: (final Collection<BinaryOperationExpression> rowNumberPredicates, final List<Object> parameters)
focal_class.return: PaginationContext
focal_class.signature: PaginationContext createPaginationWithRowNumber(final Collection<BinaryOperationExpression> rowNumberPredicates, final List<Object> parameters)
focal_class.class_method_signature: RowNumberPaginationContextEngine.createRowNumberValueSegment(final ExpressionSegment expression, final boolean boundOpened)
focal_class.full_signature: private RowNumberValueSegment createRowNumberValueSegment(final ExpressionSegment expression, final boolean boundOpened)
focal_class.identifier: createRowNumberValueSegment
focal_class.modifiers: private
focal_class.parameters: (final ExpressionSegment expression, final boolean boundOpened)
focal_class.return: RowNumberValueSegment
focal_class.signature: RowNumberValueSegment createRowNumberValueSegment(final ExpressionSegment expression, final boolean boundOpened)
focal_method.body: public PaginationContext createPaginationContext(final ExpressionSegment where, final ProjectionsContext projectionsContext, final List<Object> parameters) {
          Optional<String> rowNumberAlias = isRowNumberAlias(projectionsContext);
          if (!rowNumberAlias.isPresent()) {
              return new PaginationContext(null, null, parameters);
          }
          Collection<AndPredicate> andPredicates = new ExpressionBuilder(where).extractAndPredicates().getAndPredicates();
          Collection<BinaryOperationExpression> rowNumberPredicates = getRowNumberPredicates(andPredicates, rowNumberAlias.get());
          return rowNumberPredicates.isEmpty() ? new PaginationContext(null, null, parameters) : createPaginationWithRowNumber(rowNumberPredicates, parameters);
      }
focal_method.class_method_signature: RowNumberPaginationContextEngine.createPaginationContext(final ExpressionSegment where, final ProjectionsContext projectionsContext, final List<Object> parameters)
focal_method.full_signature: public PaginationContext createPaginationContext(final ExpressionSegment where, final ProjectionsContext projectionsContext, final List<Object> parameters)
focal_method.identifier: createPaginationContext
focal_method.invocations: isRowNumberAlias isPresent getAndPredicates extractAndPredicates getRowNumberPredicates get isEmpty createPaginationWithRowNumber
focal_method.modifiers: public
focal_method.parameters: (final ExpressionSegment where, final ProjectionsContext projectionsContext, final List<Object> parameters)
focal_method.return: PaginationContext
focal_method.signature: PaginationContext createPaginationContext(final ExpressionSegment where, final ProjectionsContext projectionsContext, final List<Object> parameters)