public static class EmptyFieldsCountAccumulator.VectorAccumulator extends Object implements Accumulator<Integer,List<Integer>>
add(Integer)
method lets you
increase the n-th vector component by 1, whereat n is the methods parameter. The size of the vector
is automatically managed.Constructor and Description |
---|
VectorAccumulator() |
Modifier and Type | Method and Description |
---|---|
void |
add(Integer position)
Increases the result vector component at the specified position by 1.
|
List<Integer> |
getLocalValue() |
void |
merge(Accumulator<Integer,List<Integer>> other) |
void |
read(DataInputView in) |
void |
resetLocal() |
void |
write(DataOutputView out) |
public void add(Integer position)
add
in interface Accumulator<Integer,List<Integer>>
public List<Integer> getLocalValue()
getLocalValue
in interface Accumulator<Integer,List<Integer>>
public void resetLocal()
resetLocal
in interface Accumulator<Integer,List<Integer>>
public void merge(Accumulator<Integer,List<Integer>> other)
merge
in interface Accumulator<Integer,List<Integer>>
public void write(DataOutputView out) throws IOException
write
in interface IOReadableWritable
IOException
public void read(DataInputView in) throws IOException
read
in interface IOReadableWritable
IOException
Copyright © 2015 The Apache Software Foundation. All rights reserved.