public void printFinalInfo()
{
Duration wallTime = Duration.nanosSince(start);
QueryResults results = client.finalResults();
StatementStats stats = results.getStats();
int nodes = stats.getNodes();
if ((nodes == 0) || (stats.getTotalSplits() == 0)) {
return;
}
// blank line
out.println();
// Query 12, FINISHED, 1 node
String querySummary = String.format("Query %s, %s, %,d %s",
results.getId(),
stats.getState(),
nodes,
pluralize("node", nodes));
out.println(querySummary);
if (client.isDebug()) {
out.println(results.getInfoUri() + "?pretty");
}
// Splits: 1000 total, 842 done (84.20%)
String splitsSummary = String.format("Splits: %,d total, %,d done (%.2f%%)",
stats.getTotalSplits(),