Package eu.stratosphere.api.common.typeutils.base

Examples of eu.stratosphere.api.common.typeutils.base.StringComparator


      try {
        MemoryManager mm = new DefaultMemoryManager(1024 * 1024);
        IOManager ioMan = new IOManager();
         
        TypeSerializer<String> serializer = StringSerializer.INSTANCE;
        TypeComparator<String> comparator = new StringComparator(true);
       
        reader = new BufferedReader(new FileReader(input));
        MutableObjectIterator<String> inputIterator = new StringReaderMutableObjectIterator(reader);
       
        sorter = new UnilateralSortMerger<String>(mm, ioMan, inputIterator, new DummyInvokable(),
View Full Code Here


  protected TupleComparator<Tuple3<Integer, String, Double>> createComparator(boolean ascending) {
    return new TupleComparator<Tuple3<Integer, String, Double>>(
        new int[]{0, 1, 2},
        new TypeComparator[]{
          new IntComparator(ascending),
          new StringComparator(ascending),
          new DoubleComparator(ascending)
        },
    new TypeSerializer[]{ IntSerializer.INSTANCE, StringSerializer.INSTANCE, DoubleSerializer.INSTANCE });
  }
View Full Code Here

  protected TupleComparator<Tuple3<Integer, String, Double>> createComparator(boolean ascending) {
    return new TupleComparator<Tuple3<Integer, String, Double>>(
        new int[]{0, 1},
        new TypeComparator[]{
          new IntComparator(ascending),
          new StringComparator(ascending)
        },
    new TypeSerializer[]{ IntSerializer.INSTANCE, StringSerializer.INSTANCE, DoubleSerializer.INSTANCE });
  }
View Full Code Here

public class StringComparatorTest extends ComparatorTestBase<String> {

  @Override
  protected TypeComparator<String> createComparator(boolean ascending) {
    return new StringComparator(ascending);
  }
View Full Code Here

TOP

Related Classes of eu.stratosphere.api.common.typeutils.base.StringComparator

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.