Package lupos.datastructures.dbmergesortedds

Examples of lupos.datastructures.dbmergesortedds.SortConfiguration


    if (this.memorySet.size() < MAXMEMORYMAPENTRIES)
      return this.memorySet.add(arg0);
    if (this.memorySet.contains(arg0))
      return false;
    if (this.diskSet == null){
      this.diskSet = new DBMergeSortedSet<E>(new SortConfiguration(), (Class<E>) arg0.getClass());
    }
    return this.diskSet.add(arg0);
  }
View Full Code Here


    }
    if(this.memoryBag.contains(arg0)) {
      return false;
    }
    if(this.diskBag==null) {
      this.diskBag=new DBMergeSortedBag<E>(new SortConfiguration(), this.memoryBag.comparator(),(Class<E>)arg0.getClass());
    }
    return this.diskBag.add(arg0);
  }
View Full Code Here

    }
    if (this.memorySet.contains(arg0)) {
      return false;
    }
    if (this.diskSet == null) {
      this.diskSet = new DBMergeSortedSet<E>(new SortConfiguration(), this.memorySet
          .comparator(), (Class<E>) arg0.getClass());
    }
    return this.diskSet.add(arg0);
  }
View Full Code Here

      // Construct dictionary:

      final Thread codeMapConstructionThread = new Thread() {
        @Override
        public void run() {
            final DBMergeSortedSetUsingTrie rdftermsRepresentations = new DBMergeSortedSetUsingTrie(new SortConfiguration(), String.class);

            final TripleConsumer tc = new TripleConsumer() {

              @Override
              public void consume(final Triple triple) {
View Full Code Here

  public DBMergeSortedBagSort() {
    super();
  }

  public DBMergeSortedBagSort(final lupos.sparql1_1.Node node) {
    super(new DBMergeSortedBag<Bindings>(new SortConfiguration(), new ComparatorAST(node),
        Bindings.class), node);
  }
View Full Code Here

  }

  @Override
  public void cloneFrom(final BasicOperator op) {
    super.cloneFrom(op);
    this.sswd = new DBMergeSortedBag<Bindings>(new SortConfiguration(), ((Sort) op)
        .getComparator(), Bindings.class);
  }
View Full Code Here

import lupos.datastructures.dbmergesortedds.SortConfiguration;

public class DBMergeSortedBagMergeJoin extends MergeJoin {
 
  public DBMergeSortedBagMergeJoin() {
    init(new DBMergeSortedBag<Bindings>(new SortConfiguration(), this.comp, Bindings.class), new DBMergeSortedBag<Bindings>(new SortConfiguration(), this.comp, Bindings.class));
  }
View Full Code Here

      if (this instanceof MemoryIndexScan) {
        // additional sorting phase according to variable v needed
        // for memory index approach!
        final DBMergeSortedBag<Bindings> sort = new DBMergeSortedBag<Bindings>(
            new SortConfiguration(), new Comparator<Bindings>() {
              @Override
              public int compare(final Bindings arg0, final Bindings arg1) {
                return arg0.get(v).compareToNotNecessarilySPARQLSpecificationConform(arg1.get(v));
              }
            }, Bindings.class);
View Full Code Here

    }
    return QueryResult.createInstance(getIterator(sswd.iterator()));
  }

  protected SortedBag<Bindings> createBag() {
    return new DBMergeSortedBag<Bindings>(new SortConfiguration(), compLocal,
        Bindings.class);
  }
View Full Code Here

  }

  @Override
  public QueryResult process(final QueryResult bindings, final int operandID) {
   
    SortConfiguration sortConfiguration = new SortConfiguration();
    sortConfiguration.useExternalMergeSort();

    final DBMergeSortedBag<Bindings> bag = new DBMergeSortedBag<Bindings>(
        sortConfiguration, new Comparator<Bindings>() {
          public int compare(final Bindings arg0, final Bindings arg1) {
            for (final Variable var : sortCriterium) {
View Full Code Here

TOP

Related Classes of lupos.datastructures.dbmergesortedds.SortConfiguration

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.