Java Code Examples for org.apache.flink.api.common.accumulators.Accumulator#getLocalValue()
The following examples show how to use
org.apache.flink.api.common.accumulators.Accumulator#getLocalValue() .
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: EmptyFieldsCountAccumulator.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override public void merge(final Accumulator<Integer, ArrayList<Integer>> other) { // merge two vector accumulators by adding their up their vector components final List<Integer> otherVector = other.getLocalValue(); for (int index = 0; index < otherVector.size(); index++) { updateResultVector(index, otherVector.get(index)); } }
Example 2
Source File: EmptyFieldsCountAccumulator.java From flink with Apache License 2.0 | 5 votes |
@Override public void merge(final Accumulator<Integer, ArrayList<Integer>> other) { // merge two vector accumulators by adding their up their vector components final List<Integer> otherVector = other.getLocalValue(); for (int index = 0; index < otherVector.size(); index++) { updateResultVector(index, otherVector.get(index)); } }
Example 3
Source File: EmptyFieldsCountAccumulator.java From flink with Apache License 2.0 | 5 votes |
@Override public void merge(final Accumulator<Integer, ArrayList<Integer>> other) { // merge two vector accumulators by adding their up their vector components final List<Integer> otherVector = other.getLocalValue(); for (int index = 0; index < otherVector.size(); index++) { updateResultVector(index, otherVector.get(index)); } }
Example 4
Source File: KMeansForTest.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public void merge(Accumulator<Long, Long> other) { this.value += other.getLocalValue(); }
Example 5
Source File: KMeansForTest.java From flink with Apache License 2.0 | 4 votes |
@Override public void merge(Accumulator<Long, Long> other) { this.value += other.getLocalValue(); }
Example 6
Source File: KMeansForTest.java From flink with Apache License 2.0 | 4 votes |
@Override public void merge(Accumulator<Long, Long> other) { this.value += other.getLocalValue(); }