Package org.openbel.framework.core.indexer

Examples of org.openbel.framework.core.indexer.EquivalenceLookup


            // Resource location is never null
            final String rl = ns.getResourceLocation();

            // Which bucket are we mapped to?
            final EquivalenceLookup bucket = equivs.forResourceLocation(rl);

            // This parameter's namespace is not mapped to the current eqs
            if (bucket == null) {
                jArray[i] = null;
                parameterIndices[i] = tpIdx.get(param);
                continue;
            }

            // Index the parameter i to its respective bucket
            jArray[i] = bucket;
            // Index the parameter i to its parameter index
            parameterIndices[i] = tpIdx.get(param);
        }

        // Second pass
        for (int i = 0; i < numParams; i++) {
            EquivalenceLookup bucket = jArray[i];
            final int pIndex = parameterIndices[i];

            // Does this parameter have a bucket?
            if (bucket == null) {
                globalIndex.put(pIndex, gi);
                // no equivalence
                gi++;
                continue;
            }

            final TableParameter param = params[i];
            final String value = param.getValue();
            final SkinnyUUID lookup = bucket.lookup(value);

            // Null lookup means no equivalence
            if (lookup == null) {
                // Parameter index gets the current gi
                globalIndex.put(pIndex, gi);
View Full Code Here


            SkinnyUUID bucket = null;
            Namespace ns = src.getNamespace();
            String val = src.getValue();
            if (ns != null) {
                String rl = ns.getResourceLocation();
                EquivalenceLookup el = lookup.forResourceLocation(rl);
                if (el != null) {
                    bucket = el.lookup(val);
                }
            }
            EquivalentParameter dest = new EquivalentParameter(ns, val, bucket);
            return dest;
        }
View Full Code Here

TOP

Related Classes of org.openbel.framework.core.indexer.EquivalenceLookup

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.