Examples of TripleComparator


Examples of com.hp.hpl.jena.sparql.util.TripleComparator

    }
   
    @Override
    protected DataBag<Triple> createDataBag()
    {
        return BagFactory.newDistinctBag(getThresholdPolicy(), SerializationFactoryFinder.tripleSerializationFactory(), new TripleComparator()) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.util.TripleComparator

    }
   
    @Override
    protected DataBag<Triple> createDataBag()
    {
        return BagFactory.newDistinctBag(getThresholdPolicy(), SerializationFactoryFinder.tripleSerializationFactory(), new TripleComparator()) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.util.TripleComparator

    }
   
    @Override
    protected DataBag<Triple> createDataBag()
    {
        return BagFactory.newDistinctBag(getThresholdPolicy(), SerializationFactoryFinder.tripleSerializationFactory(), new TripleComparator()) ;
    }
View Full Code Here

Examples of lupos.datastructures.items.TripleComparator

  private final Heap<HeapEntry> heap;
  private int idOfLastElement;

  public MergeIndicesTripleIterator(final IndicesTripleIterator[] itia,
      final RDF3XIndexScan.CollationOrder collationOrder) {
    this.comparator = new TripleComparator(collationOrder);
    this.heap = new SequentialHeap<HeapEntry>(itia.length, true);
    for (int i = 0; i < itia.length; i++) {
      if (itia[i] != null) {
        final Triple t = itia[i].next();
        if (t != null) {
View Full Code Here

Examples of lupos.datastructures.items.TripleComparator

                dbbptree.setName(order.toString());

                return new OptimizedDBBPTreeGeneration<TripleKey, Triple>(new DBMergeSortedMap<TripleKey, Triple>(new SortConfiguration(), (Class<lupos.datastructures.dbmergesortedds.MapEntry<TripleKey, Triple>>) (new lupos.datastructures.dbmergesortedds.MapEntry<TripleKey, Triple>(null, null)).getClass()), dbbptree);
            } else {
        return new PrefixSearchFromSortedMap<TripleKey, Triple>(new TreeMap<TripleKey, Triple>(new TripleKeyComparator(new TripleComparator(order))));
      }

        } catch (final IOException e) {
            System.err.println(e);
            e.printStackTrace();
View Full Code Here

Examples of lupos.datastructures.items.TripleComparator

                    System.err.println(e);
                    e.printStackTrace();
                }
            }
        } else {
          this.SPO.put(new TripleKey(t, new TripleComparator(CollationOrder.SPO)), t);
          this.SOP.put(new TripleKey(t, new TripleComparator(CollationOrder.SOP)), t);
          this.PSO.put(new TripleKey(t, new TripleComparator(CollationOrder.PSO)), t);
          this.POS.put(new TripleKey(t, new TripleComparator(CollationOrder.POS)), t);
          this.OSP.put(new TripleKey(t, new TripleComparator(CollationOrder.OSP)), t);
          this.OPS.put(new TripleKey(t, new TripleComparator(CollationOrder.OPS)), t);
        }
    }
View Full Code Here

Examples of lupos.datastructures.items.TripleComparator

    }

    @Override
    public boolean contains(final Triple t) {
      this.waitForAdderThreads();
        return (this.SPO.get(new TripleKey(t, new TripleComparator(CollationOrder.SPO))) != null);
    }
View Full Code Here

Examples of lupos.datastructures.items.TripleComparator

        this.OPS = this.getDatastructure(CollationOrder.OPS);
    }

    @Override
    public void remove(final Triple t) {
      this.SPO.remove(new TripleKey(t, new TripleComparator(CollationOrder.SPO)));
      this.SOP.remove(new TripleKey(t, new TripleComparator(CollationOrder.SOP)));
      this.PSO.remove(new TripleKey(t, new TripleComparator(CollationOrder.PSO)));
      this.POS.remove(new TripleKey(t, new TripleComparator(CollationOrder.POS)));
      this.OSP.remove(new TripleKey(t, new TripleComparator(CollationOrder.OSP)));
      this.OPS.remove(new TripleKey(t, new TripleComparator(CollationOrder.OPS)));
    }
View Full Code Here

Examples of lupos.datastructures.items.TripleComparator

        @Override
        public void run() {
            try {
                while (this.bbt.hasNext()) {
                    final Triple t = this.bbt.get();
                    this.ps.put(new TripleKey(t, new TripleComparator(this.order)), t);
                }
            } catch (final InterruptedException e) {
                System.err.println(e);
                e.printStackTrace();
            }
View Full Code Here

Examples of lupos.datastructures.items.TripleComparator

    final int order = in.read();
    if (order < 0) {
      return null;
    }
    final Triple t = InputHelper.readLuposTriple(in);
    return new TripleKey(t, new TripleComparator((byte) order));
  }
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.