Package au.csiro.snorocket.core.util

Examples of au.csiro.snorocket.core.util.FastConceptHashSet


        conceptNodeIndex = new ConcurrentHashMap<String, Node>();
       
        Node top = null;
        Node bottom = null;
       
        IConceptSet processed = new FastConceptHashSet();
        Set<Node> nodeSet = new HashSet<Node>();
       
        for(int key : equiv.keySet()) {
            if(processed.contains(key)) continue;
            IConceptSet equivs = equiv.get(key);
            processed.addAll(equivs);
           
            Node n = new Node();
            for(IntIterator it = equivs.iterator(); it.hasNext(); ) {
                int val = it.next();
                String tval = factory.lookupConceptId(val).toString();
View Full Code Here


   
    public static void addToSet(ConcurrentMap<Integer, IConceptSet> set,
            int key, int val) {
        IConceptSet valSet = set.get(key);
        if(valSet == null) {
            IConceptSet temp = new FastConceptHashSet();
            valSet = set.putIfAbsent(key, temp);
            if(valSet == null) {
                temp.add(val);
            } else {
                valSet.add(val);
            }
        } else {
            valSet.add(val);
View Full Code Here

        conceptNodeIndex = new ConcurrentHashMap<String, Node>();
       
        Node top = null;
        Node bottom = null;
       
        IConceptSet processed = new FastConceptHashSet();
        Set<Node> nodeSet = new HashSet<Node>();
       
        for(int key : equiv.keySet()) {
            if(processed.contains(key)) continue;
            IConceptSet equivs = equiv.get(key);
            processed.addAll(equivs);
           
            Node n = new Node();
            for(IntIterator it = equivs.iterator(); it.hasNext(); ) {
                int val = it.next();
                String tval = factory.lookupConceptId(val).toString();
View Full Code Here

TOP

Related Classes of au.csiro.snorocket.core.util.FastConceptHashSet

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.