Package org.exist.indexing.range

Examples of org.exist.indexing.range.RangeIndexConfigElement


        final String calledAs = getSignature().getName().getLocalName();
        return RangeIndexModule.OPERATOR_MAP.get(calledAs);
    }

    private AtomicValue[] getKeys(Sequence contextSequence) throws XPathException {
        RangeIndexConfigElement config = findConfiguration(contextSequence);
        int targetType = config != null ? config.getType() : Type.ITEM;
        Sequence keySeq = getArgument(1).eval(contextSequence);
        AtomicValue[] keys = new AtomicValue[keySeq.getItemCount()];
        for (int i = 0; i < keys.length; i++) {
            if (targetType == Type.ITEM) {
                keys[i] = (AtomicValue) keySeq.itemAt(i);
View Full Code Here


    @Override
    public boolean canOptimize(Sequence contextSequence) {
        if (contextQName == null) {
            return false;
        }
        RangeIndexConfigElement rice = findConfiguration(contextSequence);
        if (rice == null) {
            canOptimize = false;
            if (fallback instanceof Optimizable) {
                return ((Optimizable)fallback).canOptimize(contextSequence);
            }
View Full Code Here

            }
            IndexSpec idxConf = collection.getIndexConfiguration(context.getBroker());
            if (idxConf != null) {
                RangeIndexConfig config = (RangeIndexConfig) idxConf.getCustomIndexSpec(RangeIndex.ID);
                if (config != null) {
                    RangeIndexConfigElement rice = config.find(path);
                    if (rice != null && !rice.isComplex()) {
                        return rice;
                    }
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.exist.indexing.range.RangeIndexConfigElement

Copyright © 2018 www.massapicom. 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.