for (ExecutionInfo executionInfo : resultSet.getAllExecutionInfo()) {
if (executionInfo == null)
continue;
Host qh = executionInfo.getQueriedHost();
ConsistencyLevel cl = executionInfo.getAchievedConsistencyLevel();
QueryTrace queryTrace = executionInfo.getQueryTrace();
execInfo.append("\n exeuction info: queried-host=[address=").append(qh.getAddress()).
append(", version=").append(qh.getCassandraVersion()).
append(", dc=").append(qh.getDatacenter()).
append(", rac=").append(qh.getRack()).
append("], achieved-consistency-level=").append(cl);
if (queryTrace != null) {
InetAddress coordinator = queryTrace.getCoordinator();
int durationMicros = queryTrace.getDurationMicros();
Map<String, String> parameters = queryTrace.getParameters();
String requestType = queryTrace.getRequestType();
long startedAt = queryTrace.getStartedAt();
UUID traceId = queryTrace.getTraceId();
execInfo.append("\n query-trace: coordinator=").append(coordinator).
append(", duration[us]=").append(durationMicros).
append(", requestType=").append(requestType).
append(", startedAt=").append(startedAt).
append(", traceId=").append(traceId).
append(", parameters=").append(parameters);
if (fetchTrace) {
List<QueryTrace.Event> events = queryTrace.getEvents();
if (events != null) {
for (QueryTrace.Event event : events) {
if (event == null)
continue;
InetAddress source = event.getSource();