for ( EntityKeyMetadata entityKeyMetadata : entityKeyMetadatas ) {
ResourceIterator<Node> queryNodes = entityQueries.get( entityKeyMetadata ).findEntities( executionEngine );
try {
while ( queryNodes.hasNext() ) {
Node next = queryNodes.next();
Tuple tuple = new Tuple( new Neo4jTupleSnapshot( next ) );
consumer.consume( tuple );
}
}
finally {
queryNodes.close();