core/src/main/java/com/orientechnologies/orient/core/sql/parser/OMatchStatement.java
private void assignDefaultAliases(List<OMatchExpression> matchExpressions) {
    int counter = 0;
    for (OMatchExpression expression : matchExpressions) {
      if (expression.origin.getAlias() == null) {
        expression.origin.setAlias(DEFAULT_ALIAS_PREFIX + (counter++));
      }

      for (OMatchPathItem item : expression.items) {
        if (item.filter == null) {
          item.filter = new OMatchFilter(-1);
        }
        if (item.filter.getAlias() == null) {
          item.filter.setAlias(DEFAULT_ALIAS_PREFIX + (counter++));
        }
      }
    }
  }
private void assignDefaultAliases(List<OMatchExpression> matchExpressions) {
    int counter = 0;
    for (OMatchExpression expression : matchExpressions) {
      if (expression.origin.getAlias() == null) {
        expression.origin.setAlias(DEFAULT_ALIAS_PREFIX + (counter++));
      }

      for (OMatchPathItem item : expression.items) {
        if (item.filter == null) {
          item.filter = new OMatchFilter(-1);
        }
        if (item.filter.getAlias() == null) {
          item.filter.setAlias(DEFAULT_ALIAS_PREFIX + (counter++));
        }
      }
    }
  }
private void assignDefaultAliases ( List < OMatchExpression > matchExpressions ) { int counter = 0 ; for ( OMatchExpression expression : matchExpressions ) { if ( expression . origin . getAlias ( ) == null ) { expression . origin . setAlias ( DEFAULT_ALIAS_PREFIX + ( counter ++ ) ) ; } for ( OMatchPathItem item : expression . items ) { if ( item . filter == null ) { item . filter = new OMatchFilter ( - 1 ) ; } if ( item . filter . getAlias ( ) == null ) { item . filter . setAlias ( DEFAULT_ALIAS_PREFIX + ( counter ++ ) ) ; } } } }
assigns default aliases to pattern nodes that do not have an explicit alias

@param matchExpressions
assigns default aliases to pattern nodes that do not have an explicit alias