Examples of IntByteArray


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

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
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.