Examples of indexAppliesTo()


Examples of org.modeshape.jcr.spi.index.provider.IndexUsage.indexAppliesTo()

            }

        };
        // Does this index apply to any of the ANDed constraints?
        for (Constraint constraint : calculator.andedConstraints()) {
            if (planner.indexAppliesTo(constraint)) {
                logger().trace("Index '{0}' in '{1}' provider applies to query in workspace '{2}' with constraint: {3}",
                               defn.getName(), getName(), workspaceName, constraint);
                // The index does apply to this constraint ...
                long cardinality = localIndex.estimateCardinality(constraint, context.getVariables());
                long total = localIndex.estimateTotalCount();
View Full Code Here

Examples of org.modeshape.jcr.spi.index.provider.IndexUsage.indexAppliesTo()

            }
        }

        // Does this index apply to any of the join conditions ...
        for (JoinCondition joinCondition : calculator.joinConditions()) {
            if (planner.indexAppliesTo(joinCondition)) {
                logger().trace("Index '{0}' in '{1}' provider applies to query in workspace '{2}' with constraint: {3}",
                               defn.getName(), getName(), workspaceName, joinCondition);
                // The index does apply to this constraint, but the number of values corresponds to the total number of values
                // in the index (this is a JOIN CONDITON for which there is no literal values) ...
                long total = localIndex.estimateTotalCount();
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.