src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/sql/SqlParser.java
public void parse(String statement) throws JSQLParserException {
    Statements statements = CCJSqlParserUtil.parseStatements(statement);
    INodeSqlStatementVisitor inodeVisitor = new INodeSqlStatementVisitor();
    statements.accept(inodeVisitor);
    set = inodeVisitor.set.toLowerCase();
    filters = String.join(",", inodeVisitor.filters);
    sum = inodeVisitor.sum;
    find = inodeVisitor.find;
    type = inodeVisitor.type;
    limit = inodeVisitor.limit;
    sortAscending = inodeVisitor.sortAscending;
    sortDescending = inodeVisitor.sortDescending;
    parentDirDepth = inodeVisitor.parentDirDepth;
    timeRange = inodeVisitor.timeRange;
  }
/**
   * The main method to parse the SQL statement into an NNA-understandable query.
   *
   * @param statement The SQL statement.
   * @throws JSQLParserException - if sql is unreadable
   */
The main method to parse the SQL statement into an NNA-understandable query.
@param statement The SQL statement.
@throws JSQLParserException - if sql is unreadable
The main method to parse the SQL statement into an NNA - understandable query . @param statement The SQL statement . @throws JSQLParserException - if sql is unreadable
public void parse(String statement) throws JSQLParserException {
    Statements statements = CCJSqlParserUtil.parseStatements(statement);
    INodeSqlStatementVisitor inodeVisitor = new INodeSqlStatementVisitor();
    statements.accept(inodeVisitor);
    set = inodeVisitor.set.toLowerCase();
    filters = String.join(",", inodeVisitor.filters);
    sum = inodeVisitor.sum;
    find = inodeVisitor.find;
    type = inodeVisitor.type;
    limit = inodeVisitor.limit;
    sortAscending = inodeVisitor.sortAscending;
    sortDescending = inodeVisitor.sortDescending;
    parentDirDepth = inodeVisitor.parentDirDepth;
    timeRange = inodeVisitor.timeRange;
  }
public void parse ( String statement ) throws JSQLParserException { Statements statements = CCJSqlParserUtil . parseStatements ( statement ) ; INodeSqlStatementVisitor inodeVisitor = new INodeSqlStatementVisitor ( ) ; statements . accept ( inodeVisitor ) ; set = inodeVisitor . set . toLowerCase ( ) ; filters = String . join ( "," , inodeVisitor . filters ) ; sum = inodeVisitor . sum ; find = inodeVisitor . find ; type = inodeVisitor . type ; limit = inodeVisitor . limit ; sortAscending = inodeVisitor . sortAscending ; sortDescending = inodeVisitor . sortDescending ; parentDirDepth = inodeVisitor . parentDirDepth ; timeRange = inodeVisitor . timeRange ; }
The main method to parse the SQL statement into an NNA-understandable query.
The main method to parse the SQL statement into an NNA - understandable query .