private void countExampleQueryNodes(List<ExampleQuery> exampleQueries)
  {

    for (ExampleQuery eQ : exampleQueries)
    {

      QueryData query = getQueryDao().parseAQL(eQ.getExampleQuery(), null);

      int count = 0;
      for (List<QueryNode> qNodes : query.getAlternatives())
      {
        count += qNodes.size();
      }

      eQ.setNodes(count);
    }
  }
private void countExampleQueryNodes ( List < ExampleQuery > exampleQueries ) { for ( ExampleQuery eQ : exampleQueries ) { QueryData query = getQueryDao ( ) . parseAQL ( eQ . getExampleQuery ( ) , null ) ; int count = 0 ; for ( List < QueryNode > qNodes : query . getAlternatives ( ) ) { count += qNodes . size ( ) ; } eQ . setNodes ( count ) ; } }
Maps example queries to integer, which represents the amount of nodes of
the aql query.