org.apache.spark.util.AccumulatorV2 Java Examples
The following examples show how to use
org.apache.spark.util.AccumulatorV2.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AttackAccumulator.java From sparkResearch with Apache License 2.0 | 4 votes |
@Override public AccumulatorV2<String, String> copy() { return new AttackAccumulator(); }
Example #2
Source File: AttackAccumulator.java From sparkResearch with Apache License 2.0 | 4 votes |
@Override public void merge(AccumulatorV2<String, String> accumulatorV2) { initEmptyLine = mergeData(accumulatorV2.value(), initEmptyLine, ";"); }
Example #3
Source File: MultiReturnParameterizedBuiltinSPInstruction.java From systemds with Apache License 2.0 | 4 votes |
@Override public AccumulatorV2<Long, Long> copy() { return new MaxLongAccumulator(_value); }
Example #4
Source File: MultiReturnParameterizedBuiltinSPInstruction.java From systemds with Apache License 2.0 | 4 votes |
@Override public void merge(AccumulatorV2<Long, Long> arg0) { _value = Math.max(_value, arg0.value()); }
Example #5
Source File: ListAccumulator.java From Apache-Spark-2x-for-Java-Developers with MIT License | 4 votes |
@Override public AccumulatorV2<String, CopyOnWriteArrayList<Integer>> copy() { return new ListAccumulator(value()); }
Example #6
Source File: ListAccumulator.java From Apache-Spark-2x-for-Java-Developers with MIT License | 4 votes |
@Override public void merge(AccumulatorV2<String, CopyOnWriteArrayList<Integer>> other) { add(other.value()); }
Example #7
Source File: MetricsContainerStepMapAccumulator.java From beam with Apache License 2.0 | 4 votes |
@Override public void merge(AccumulatorV2<MetricsContainerStepMap, MetricsContainerStepMap> other) { this.value.updateAll(other.value()); }
Example #8
Source File: NamedAggregatorsAccumulator.java From beam with Apache License 2.0 | 4 votes |
@Override public void merge(AccumulatorV2<NamedAggregators, NamedAggregators> other) { this.value.merge(other.value()); }
Example #9
Source File: MetricsContainerStepMapAccumulator.java From beam with Apache License 2.0 | 4 votes |
@Override public void merge(AccumulatorV2<MetricsContainerStepMap, MetricsContainerStepMap> other) { this.value.updateAll(other.value()); }
Example #10
Source File: NamedAggregatorsAccumulator.java From beam with Apache License 2.0 | 4 votes |
@Override public void merge(AccumulatorV2<NamedAggregators, NamedAggregators> other) { this.value.merge(other.value()); }
Example #11
Source File: MultiReturnParameterizedBuiltinSPInstruction.java From systemds with Apache License 2.0 | 4 votes |
@Override public AccumulatorV2<Long, Long> copy() { return new MaxLongAccumulator(_value); }
Example #12
Source File: MultiReturnParameterizedBuiltinSPInstruction.java From systemds with Apache License 2.0 | 4 votes |
@Override public void merge(AccumulatorV2<Long, Long> arg0) { _value = Math.max(_value, arg0.value()); }