private void analyzeAutoGeneratedQueries ( long corpusID ) { // read the example queries from the staging area List < ExampleQuery > exampleQueries = getJdbcTemplate ( ) . query ( "SELECT * FROM _" + EXAMPLE_QUERIES_TAB , new RowMapper < ExampleQuery > ( ) { @ Override public ExampleQuery mapRow ( ResultSet rs , int i ) throws SQLException { ExampleQuery eQ = new ExampleQuery ( ) ; eQ . setExampleQuery ( rs . getString ( "example_query" ) ) ; return eQ ; } } ) ; // count the nodes of the aql Query countExampleQueryNodes ( exampleQueries ) ; // fetch the operators getOperators ( exampleQueries , "\\.(\\*)?|\\>|\\>\\*|_i_" ) ; writeAmountOfNodesBack ( exampleQueries ) ; }
Counts nodes and operators of the AQL example query and writes it back to the staging area .