private void writeAmountOfNodesBack ( List < ExampleQuery > exampleQueries ) { String sqlTemplate = "UPDATE _" + EXAMPLE_QUERIES_TAB + " SET nodes=?, used_ops=CAST(? AS text[]) WHERE example_query=?;" ; for ( ExampleQuery eQ : exampleQueries ) { getJdbcTemplate ( ) . update ( sqlTemplate , eQ . getNodes ( ) , eQ . getUsedOperators ( ) , eQ . getExampleQuery ( ) ) ; } }
Writes the counted nodes and the used operators back to the staging area .