test_class.file: shardingsphere-sql-parser/shardingsphere-sql-parser-binder/src/test/java/org/apache/shardingsphere/sql/parser/binder/segment/select/projection/ProjectionsContextTest.java
test_class.identifier: ProjectionsContextTest
test_case.body: @Test
      public void assertFindProjectionIndexFailure() {
          Projection projection = getColumnProjection();
          ProjectionsContext projectionsContext = new ProjectionsContext(0, 0, true, Collections.singleton(projection));
          Optional<Integer> actual = projectionsContext.findProjectionIndex("");
          assertFalse(actual.isPresent());
      }
test_case.class_method_signature: ProjectionsContextTest.assertFindProjectionIndexFailure()
test_case.full_signature: @Test public void assertFindProjectionIndexFailure()
test_case.identifier: assertFindProjectionIndexFailure
test_case.invocations: getColumnProjection singleton findProjectionIndex assertFalse isPresent
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertFindProjectionIndexFailure()
focal_class.declarator: startIndex
focal_class.modifier: private final
focal_class.original_string: private final int startIndex;
focal_class.type: int
focal_class.var_name: startIndex
focal_class.declarator: stopIndex
focal_class.modifier: private final
focal_class.original_string: private final int stopIndex;
focal_class.type: int
focal_class.var_name: stopIndex
focal_class.declarator: distinctRow
focal_class.modifier: private final
focal_class.original_string: private final boolean distinctRow;
focal_class.type: boolean
focal_class.var_name: distinctRow
focal_class.declarator: projections
focal_class.modifier: private final
focal_class.original_string: private final Collection<Projection> projections;
focal_class.type: Collection<Projection>
focal_class.var_name: projections
focal_class.file: shardingsphere-sql-parser/shardingsphere-sql-parser-binder/src/main/java/org/apache/shardingsphere/sql/parser/binder/segment/select/projection/ProjectionsContext.java
focal_class.identifier: ProjectionsContext
focal_class.class_method_signature: ProjectionsContext.isUnqualifiedShorthandProjection()
focal_class.full_signature: public boolean isUnqualifiedShorthandProjection()
focal_class.identifier: isUnqualifiedShorthandProjection
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isUnqualifiedShorthandProjection()
focal_class.class_method_signature: ProjectionsContext.findAlias(final String projectionName)
focal_class.full_signature: public Optional<String> findAlias(final String projectionName)
focal_class.identifier: findAlias
focal_class.modifiers: public
focal_class.parameters: (final String projectionName)
focal_class.return: Optional<String>
focal_class.signature: Optional<String> findAlias(final String projectionName)
focal_class.class_method_signature: ProjectionsContext.findProjectionIndex(final String projectionName)
focal_class.full_signature: public Optional<Integer> findProjectionIndex(final String projectionName)
focal_class.identifier: findProjectionIndex
focal_class.modifiers: public
focal_class.parameters: (final String projectionName)
focal_class.return: Optional<Integer>
focal_class.signature: Optional<Integer> findProjectionIndex(final String projectionName)
focal_class.class_method_signature: ProjectionsContext.getAggregationProjections()
focal_class.full_signature: public List<AggregationProjection> getAggregationProjections()
focal_class.identifier: getAggregationProjections
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<AggregationProjection>
focal_class.signature: List<AggregationProjection> getAggregationProjections()
focal_class.class_method_signature: ProjectionsContext.getAggregationDistinctProjections()
focal_class.full_signature: public List<AggregationDistinctProjection> getAggregationDistinctProjections()
focal_class.identifier: getAggregationDistinctProjections
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<AggregationDistinctProjection>
focal_class.signature: List<AggregationDistinctProjection> getAggregationDistinctProjections()
focal_class.class_method_signature: ProjectionsContext.getExpandProjections()
focal_class.full_signature: public List<Projection> getExpandProjections()
focal_class.identifier: getExpandProjections
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Projection>
focal_class.signature: List<Projection> getExpandProjections()
focal_method.body: public Optional<Integer> findProjectionIndex(final String projectionName) {
          int result = 1;
          for (Projection each : projections) {
              if (projectionName.equalsIgnoreCase(each.getExpression())) {
                  return Optional.of(result);
              }
              result++;
          }
          return Optional.empty();
      }
focal_method.class_method_signature: ProjectionsContext.findProjectionIndex(final String projectionName)
focal_method.full_signature: public Optional<Integer> findProjectionIndex(final String projectionName)
focal_method.identifier: findProjectionIndex
focal_method.invocations: equalsIgnoreCase getExpression of empty
focal_method.modifiers: public
focal_method.parameters: (final String projectionName)
focal_method.return: Optional<Integer>
focal_method.signature: Optional<Integer> findProjectionIndex(final String projectionName)