Class EmptyFieldsCountAccumulator.VectorAccumulator
- java.lang.Object
-
- org.apache.flink.examples.java.relational.EmptyFieldsCountAccumulator.VectorAccumulator
-
- All Implemented Interfaces:
Serializable,Cloneable,org.apache.flink.api.common.accumulators.Accumulator<Integer,ArrayList<Integer>>
- Enclosing class:
- EmptyFieldsCountAccumulator
public static class EmptyFieldsCountAccumulator.VectorAccumulator extends Object implements org.apache.flink.api.common.accumulators.Accumulator<Integer,ArrayList<Integer>>
This accumulator maintains a vector of counts. Callingadd(Integer)increments the n-th vector component. The size of the vector is automatically managed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VectorAccumulator()VectorAccumulator(ArrayList<Integer> resultVector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Integer position)Increases the result vector component at the specified position by 1.org.apache.flink.api.common.accumulators.Accumulator<Integer,ArrayList<Integer>>clone()ArrayList<Integer>getLocalValue()voidmerge(org.apache.flink.api.common.accumulators.Accumulator<Integer,ArrayList<Integer>> other)voidresetLocal()StringtoString()
-
-
-
Method Detail
-
add
public void add(Integer position)
Increases the result vector component at the specified position by 1.
-
resetLocal
public void resetLocal()
-
merge
public void merge(org.apache.flink.api.common.accumulators.Accumulator<Integer,ArrayList<Integer>> other)
-
clone
public org.apache.flink.api.common.accumulators.Accumulator<Integer,ArrayList<Integer>> clone()
-
-