public static class MedianVisitor.MedianResult extends AbstractCalcResult
NULL_RESULT| Constructor and Description |
|---|
MedianResult(List newList) |
MedianResult(Object median) |
| Modifier and Type | Method and Description |
|---|---|
List |
getList() |
Object |
getValue()
Actual answer
|
boolean |
isCompatible(CalcResult targetResults)
Returns true if the target results is a compatible type with the current results, with
compatible meaning that the two results may be merged.
|
boolean |
isOptimized() |
CalcResult |
merge(CalcResult resultsToAdd)
Returns the merged results of two CalcResult.
|
toArray, toDouble, toEnvelope, toFloat, toGeometry, toInt, toList, toLong, toMap, toPoint, toSet, toString, toStringArraypublic MedianResult(List newList)
public MedianResult(Object median)
public List getList()
public Object getValue()
CalcResultgetValue in interface CalcResultgetValue in class AbstractCalcResultpublic boolean isCompatible(CalcResult targetResults)
CalcResultisCompatible in interface CalcResultisCompatible in class AbstractCalcResulttargetResults - the second CalcResult Objectpublic boolean isOptimized()
public CalcResult merge(CalcResult resultsToAdd)
CalcResultFor example: merging two min functions would return the smaller of the two values; merging a count and a sum would return an average.
merge in interface CalcResultmerge in class AbstractCalcResultCopyright © 1996–2019 Geotools. All rights reserved.