Package org.apache.crunch.impl.spark

Examples of org.apache.crunch.impl.spark.IntByteArray


  @Override
  public Tuple2<IntByteArray, byte[]> call(Pair<K, V> p) throws Exception {
    int partition = getPartitioner().getPartition(p.first(), p.second(), numPartitions);
    return new Tuple2<IntByteArray, byte[]>(
        new IntByteArray(partition, keySerde.toBytes(p.first())),
        valueSerde.toBytes(p.second()));
  }
View Full Code Here


  @Override
  public Tuple2<IntByteArray, byte[]> call(Pair<K, V> p) throws Exception {
    int partition = getPartitioner().getPartition(p.first(), p.second(), numPartitions);
    return new Tuple2<IntByteArray, byte[]>(
        new IntByteArray(partition, keySerde.toBytes(p.first())),
        valueSerde.toBytes(p.second()));
  }
View Full Code Here

TOP

Related Classes of org.apache.crunch.impl.spark.IntByteArray

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.