This project has retired. For details please refer to its Attic page.
CounterAccumulatorParam (Apache Crunch 0.11.0 API)

org.apache.crunch.impl.spark
Class CounterAccumulatorParam

java.lang.Object
  extended by org.apache.crunch.impl.spark.CounterAccumulatorParam
All Implemented Interfaces:
Serializable, org.apache.spark.AccumulableParam<Map<String,Map<String,Long>>,Map<String,Map<String,Long>>>, org.apache.spark.AccumulatorParam<Map<String,Map<String,Long>>>

public class CounterAccumulatorParam
extends Object
implements org.apache.spark.AccumulatorParam<Map<String,Map<String,Long>>>

See Also:
Serialized Form

Constructor Summary
CounterAccumulatorParam()
           
 
Method Summary
 Map<String,Map<String,Long>> addAccumulator(Map<String,Map<String,Long>> current, Map<String,Map<String,Long>> added)
           
 Map<String,Map<String,Long>> addInPlace(Map<String,Map<String,Long>> first, Map<String,Map<String,Long>> second)
           
 Map<String,Map<String,Long>> zero(Map<String,Map<String,Long>> counts)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CounterAccumulatorParam

public CounterAccumulatorParam()
Method Detail

addAccumulator

public Map<String,Map<String,Long>> addAccumulator(Map<String,Map<String,Long>> current,
                                                   Map<String,Map<String,Long>> added)
Specified by:
addAccumulator in interface org.apache.spark.AccumulableParam<Map<String,Map<String,Long>>,Map<String,Map<String,Long>>>
Specified by:
addAccumulator in interface org.apache.spark.AccumulatorParam<Map<String,Map<String,Long>>>

addInPlace

public Map<String,Map<String,Long>> addInPlace(Map<String,Map<String,Long>> first,
                                               Map<String,Map<String,Long>> second)
Specified by:
addInPlace in interface org.apache.spark.AccumulableParam<Map<String,Map<String,Long>>,Map<String,Map<String,Long>>>

zero

public Map<String,Map<String,Long>> zero(Map<String,Map<String,Long>> counts)
Specified by:
zero in interface org.apache.spark.AccumulableParam<Map<String,Map<String,Long>>,Map<String,Map<String,Long>>>


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.