Package org.apache.spark.executor

Examples of org.apache.spark.executor.TaskMetrics


  }

  @Test
  public void iterator() {
    JavaRDD<Integer> rdd = sc.parallelize(Arrays.asList(1, 2, 3, 4, 5), 2);
    TaskContext context = new TaskContext(0, 0, 0, false, false, new TaskMetrics());
    Assert.assertEquals(1, rdd.iterator(rdd.splits().get(0), context).next().intValue());
  }
View Full Code Here


  }

  @Test
  public void iterator() {
    JavaRDD<Integer> rdd = sc.parallelize(Arrays.asList(1, 2, 3, 4, 5), 2);
    TaskContext context = new TaskContextImpl(0, 0, 0L, false, new TaskMetrics());
    Assert.assertEquals(1, rdd.iterator(rdd.partitions().get(0), context).next().intValue());
  }
View Full Code Here

TOP

Related Classes of org.apache.spark.executor.TaskMetrics

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.