Package org.jrdf.graph.local.index.longindex.mem

Examples of org.jrdf.graph.local.index.longindex.mem.LongIndexMem


* @version $Revision: 2894 $
*/
public class UnionImpl implements Union {
    public LongIndex perform(LongIndex index1, LongIndex index2) throws GraphException {
        HashMap<Long, ClosableMap<Long, Set<Long>>> newIndexHashMap = new HashMap<Long, ClosableMap<Long, Set<Long>>>();
        LongIndexMem newIndex = new LongIndexMem(newIndexHashMap);
        copyEntriesToIndex(index1, newIndex);
        copyEntriesToIndex(index2, newIndex);
        return newIndex;
    }
View Full Code Here


* @version $Revision: 2894 $
*/
public class DifferenceImpl implements Difference {
    public LongIndex perform(LongIndex index1, LongIndex index2) throws GraphException {
        HashMap<Long, ClosableMap<Long, Set<Long>>> newIndexHashMap = new HashMap<Long, ClosableMap<Long, Set<Long>>>();
        LongIndexMem newIndex = new LongIndexMem(newIndexHashMap);
        copyEntriesToIndex(index1, newIndex);
        removeEntriesFromIndex(index2, newIndex);
        return newIndex;
    }
View Full Code Here

* @version $Revision: 2894 $
*/
public class IntersectionImpl implements Intersection {
    public LongIndex perform(LongIndex index1, LongIndex index2) throws GraphException {
        HashMap<Long, ClosableMap<Long, Set<Long>>> newIndexHashMap = new HashMap<Long, ClosableMap<Long, Set<Long>>>();
        LongIndexMem newIndex = new LongIndexMem(newIndexHashMap);
        BasicOperations.performIntersection(index1, index2, newIndex);
        return newIndex;
    }
View Full Code Here

    public void close() {
    }

    private LongIndex[] createIndexes() {
        return new LongIndex[]{new LongIndexMem(), new LongIndexMem(), new LongIndexMem()};
    }
View Full Code Here

    public void close() {
    }

    private LongIndex[] createIndexes() {
        return new LongIndex[]{new LongIndexMem(), new LongIndexMem(), new LongIndexMem()};
    }
View Full Code Here

TOP

Related Classes of org.jrdf.graph.local.index.longindex.mem.LongIndexMem

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.