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

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


  @Override
  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


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

  @Override
  protected TupleComparator<Tuple3<Integer, Long, Double>> createComparator(boolean ascending) {
    return new TupleComparator<Tuple3<Integer, Long, Double>>(
        new int[]{0, 1},
        new TypeComparator[]{
          new IntComparator(ascending),
          new LongComparator(ascending)
        },
        new TypeSerializer[]{ IntSerializer.INSTANCE, LongSerializer.INSTANCE });
  }
View Full Code Here

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

  @Override
  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

    new Tuple3<Integer, String, Double>(11, "hello", 23.2)
  };

  @Override
  protected TupleLeadingFieldComparator<Tuple3<Integer, String, Double>, Integer> createComparator(boolean ascending) {
    return new TupleLeadingFieldComparator<Tuple3<Integer,String,Double>, Integer>(new IntComparator(ascending));
  }
View Full Code Here

  };

  @Override
  protected TypePairComparator<Tuple3<Integer, String, Double>, Tuple4<Integer, Float, Long, Double>> createComparator(boolean ascending) {
    return new TupleLeadingFieldPairComparator<Integer, Tuple3<Integer, String, Double>, Tuple4<Integer, Float, Long, Double>>(
        new IntComparator(ascending), new IntComparator(ascending));
  }
View Full Code Here

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

  protected TuplePairComparator<Tuple3<Integer, String, Double>, Tuple4<Integer, Float, Long, Double>> createComparator(boolean ascending) {
    return new TuplePairComparator<Tuple3<Integer, String, Double>, Tuple4<Integer, Float, Long, Double>>(
        new int[]{0, 2},
        new int[]{0, 3},
        new TypeComparator[]{
          new IntComparator(ascending),
          new DoubleComparator(ascending)
        },
        new TypeComparator[]{
          new IntComparator(ascending),
          new DoubleComparator(ascending)
        }
    );
  }
View Full Code Here

public class IntComparatorTest extends ComparatorTestBase<Integer> {

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

TOP

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

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.