Package org.geotools.feature.visitor
Class MedianVisitor.MedianResult
Object
AbstractCalcResult
MedianResult
- All Implemented Interfaces:
- CalcResult
- Enclosing class:
- MedianVisitor
- 
Field SummaryFields inherited from interface CalcResultNULL_RESULT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetList()getValue()Actual answerbooleanisCompatible(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.booleanmerge(CalcResult resultsToAdd) Returns the merged results of two CalcResult.Methods inherited from class AbstractCalcResulttoArray, toDouble, toEnvelope, toFloat, toGeometry, toInt, toList, toLong, toMap, toPoint, toSet, toString, toStringArray
- 
Constructor Details- 
MedianResult
- 
MedianResult
 
- 
- 
Method Details- 
getList
- 
getValueDescription copied from interface:CalcResultActual answer- Specified by:
- getValuein interface- CalcResult
- Overrides:
- getValuein class- AbstractCalcResult
- Returns:
- the calculation result as a generic object
 
- 
isCompatibleDescription copied from interface:CalcResultReturns true if the target results is a compatible type with the current results, with compatible meaning that the two results may be merged.- Specified by:
- isCompatiblein interface- CalcResult
- Overrides:
- isCompatiblein class- AbstractCalcResult
- Parameters:
- targetResults- the second CalcResult Object
- Returns:
- true if the targetResults can be merged with the current results
 
- 
isOptimizedpublic boolean isOptimized()
- 
mergeDescription copied from interface:CalcResultReturns the merged results of two CalcResult. The way in which the results are merged is dependent on the type of the results added. A new instance is created containing the merged results.For example: merging two min functions would return the smaller of the two values; merging a count and a sum would return an average. - Specified by:
- mergein interface- CalcResult
- Overrides:
- mergein class- AbstractCalcResult
- Returns:
- the merged results
 
 
-