Examples of IndexPlan


Examples of org.modeshape.jcr.query.engine.IndexPlan

                            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);
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.