str.append(item);
}
}
str.append(']');
} else if (value instanceof IndexPlan) {
IndexPlan index = (IndexPlan)value;
str.append(index.getName());
// if (index.getWorkspaceName() != null) {
// str.append(", workspace=").append(index.getWorkspaceName());
// } else {
// str.append(", workspace=*");
// }
if (index.getProviderName() != null) {
str.append(", provider=").append(index.getProviderName());
} else {
str.append(", provider=<implicit>");
}
str.append(", cost~=").append(index.getCostEstimate());
str.append(", cardinality~=").append(index.getCardinalityEstimate());
Float selectivity = index.getSelectivityEstimate();
if (selectivity != null) {
str.append(", selectivity~=").append(selectivity.floatValue());
} else {
str.append(", selectivity~=?");
}
if (!index.getConstraints().isEmpty()) {
str.append(", constraints=").append(index.getConstraints());
}
for (Map.Entry<String, Object> param : index.getParameters().entrySet()) {
str.append(", ").append(param.getKey()).append('=').append(param.getValue());
}
} else {
str.append(value);
}