public final class IntegerMedianValueAggregatorFunction extends Object implements Function<List<Integer>,Integer>
AbstractListBackedAggregator
which computes the median
of all the numbers in the list.Constructor and Description |
---|
IntegerMedianValueAggregatorFunction()
By default create a function which will operate on a copy of the original
list (
useCopy = true). |
IntegerMedianValueAggregatorFunction(boolean useCopy)
Constructor which allows the caller to specify whether to operate on the
original list or a copy of it.
|
public IntegerMedianValueAggregatorFunction()
useCopy
= true).useCopy
public IntegerMedianValueAggregatorFunction(boolean useCopy)
useCopy
- Set to true to operate on a copy of the list or false to
operate on the original list.useCopy
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.