Examples of IntPairComparator


Examples of bgu.bio.adt.tuples.IntPairComparator

  }

  public ArrayList<RNA> splitToStems(int maxGapSize) {
    // get the pairs in the structure
    ArrayList<IntPair> pairs = this.extractPairs();
    Collections.sort(pairs, new IntPairComparator());

    ArrayList<ArrayList<IntPair>> stackings = new ArrayList<ArrayList<IntPair>>();

    for (int p = 0; p < pairs.size(); p++) {
      IntPair current = pairs.get(p);
View Full Code Here

Examples of bgu.bio.adt.tuples.IntPairComparator

    Assert.assertEquals("Cavity matching answer is wrong", 13,
        matcher.minCostCavityMatching(7, 5), 0.001);

    TIntArrayList[] matching = matcher.getCavityMatching(7, 5);
    IntPairComparator comp = new IntPairComparator();

    ArrayList<IntPair> ans = new ArrayList<IntPair>();
    ArrayList<IntPair> exp = new ArrayList<IntPair>();

    ans.add(new IntPair(6, 3));
View Full Code Here

Examples of eu.stratosphere.pact.runtime.test.util.types.IntPairComparator

  @Before
  public void beforeTest() {
    this.memoryManager = new DefaultMemoryManager(MEMORY_SIZE, MEMORY_PAGE_SIZE);
    this.serializer = new IntPairSerializer();
    this.comparator = new IntPairComparator();
  }
View Full Code Here

Examples of eu.stratosphere.pact.runtime.test.util.types.IntPairComparator

    // comparator
    final RandomIntPairGenerator generator = new RandomIntPairGenerator(12345678, PAIRS);
   
    final TypeSerializerFactory<IntPair> serializerFactory = new IntPairSerializer.IntPairSerializerFactory();
    final TypeComparator<IntPair> comparator = new IntPairComparator();
   
    // merge iterator
    LOG.debug("Initializing sortmerger...");
   
    Sorter<IntPair> merger = new UnilateralSortMerger<IntPair>(this.memoryManager, this.ioManager,
View Full Code Here

Examples of eu.stratosphere.pact.runtime.test.util.types.IntPairComparator

    this.record2Comparator = new RecordComparator(new int[] {0}, new Class[] {TestData.Key.class});
   
    this.recordPairComparator = new RecordPairComparator(new int[] {0}, new int[] {0}, new Class[] {TestData.Key.class});
   
    this.pairSerializer = new IntPairSerializer();
    this.pairComparator = new IntPairComparator();
    this.pairRecordPairComparator = new IntPairRecordPairComparator();
    this.recordPairPairComparator = new RecordIntPairPairComparator();
   
    this.memoryManager = new DefaultMemoryManager(MEMORY_SIZE);
    this.ioManager = new IOManager();
View Full Code Here

Examples of eu.stratosphere.pact.runtime.test.util.types.IntPairComparator

    this.recordProbeSideComparator = new RecordComparator(keyPos, keyType);
    this.pactRecordComparator = new RecordPairComparatorFirstInt();
   
    this.pairBuildSideAccesssor = new IntPairSerializer();
    this.pairProbeSideAccesssor = new IntPairSerializer();
    this.pairBuildSideComparator = new IntPairComparator();
    this.pairProbeSideComparator = new IntPairComparator();
    this.pairComparator = new IntPairPairComparator();
   
    this.memManager = new DefaultMemoryManager(32 * 1024 * 1024);
    this.ioManager = new IOManager();
  }
View Full Code Here

Examples of org.apache.flink.runtime.operators.testutils.types.IntPairComparator

    this.recordProbeSideComparator = new RecordComparator(keyPos, keyType);
    this.pactRecordComparator = new RecordPairComparatorFirstInt();
   
    this.pairBuildSideAccesssor = new IntPairSerializer();
    this.pairProbeSideAccesssor = new IntPairSerializer();
    this.pairBuildSideComparator = new IntPairComparator();
    this.pairProbeSideComparator = new IntPairComparator();
    this.pairComparator = new IntPairPairComparator();
   
    this.memManager = new DefaultMemoryManager(32 * 1024 * 1024,1);
    this.ioManager = new IOManager();
  }
View Full Code Here

Examples of org.apache.flink.runtime.operators.testutils.types.IntPairComparator

  @Before
  public void beforeTest() {
    this.memoryManager = new DefaultMemoryManager(MEMORY_SIZE, MEMORY_PAGE_SIZE);
    this.serializer = new IntPairSerializer();
    this.comparator = new IntPairComparator();
  }
View Full Code Here

Examples of org.apache.flink.runtime.operators.testutils.types.IntPairComparator

    // comparator
    final RandomIntPairGenerator generator = new RandomIntPairGenerator(12345678, PAIRS);
   
    final TypeSerializerFactory<IntPair> serializerFactory = new IntPairSerializer.IntPairSerializerFactory();
    final TypeComparator<IntPair> comparator = new IntPairComparator();
   
    // merge iterator
    LOG.debug("Initializing sortmerger...");
   
    Sorter<IntPair> merger = new UnilateralSortMerger<IntPair>(this.memoryManager, this.ioManager,
View Full Code Here

Examples of org.apache.flink.runtime.operators.testutils.types.IntPairComparator

    this.record2Comparator = new RecordComparator(new int[] {0}, new Class[] {TestData.Key.class});
   
    this.recordPairComparator = new RecordPairComparator(new int[] {0}, new int[] {0}, new Class[] {TestData.Key.class});
   
    this.pairSerializer = new IntPairSerializer();
    this.pairComparator = new IntPairComparator();
    this.pairRecordPairComparator = new IntPairRecordPairComparator();
    this.recordPairPairComparator = new RecordIntPairPairComparator();
   
    this.memoryManager = new DefaultMemoryManager(MEMORY_SIZE, 1);
    this.ioManager = new IOManager();
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.