| |
|
| org.geotools.feature.visitor.CalcResult
All known Subclasses: org.geotools.feature.visitor.AbstractCalcResult,
CalcResult | public interface CalcResult (Code) | | Encapsulates the results from a FeatureCalc, and includes methods for
obtaining and merging results.
author: Cory Horner, Refractions See Also: FeatureCalc since: 2.2.M2 |
getValue | public Object getValue()(Code) | | Actual answer
the calculation result as a generic object |
isCompatible | public boolean isCompatible(CalcResult targetResults)(Code) | | Returns true if the target results is a compatible type with the current
results, with compatible meaning that the two results may be merged.
Parameters: targetResults - the second CalcResult Object true if the targetResults can be merged with the current results |
merge | public CalcResult merge(CalcResult resultsToAdd)(Code) | | Returns 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.
Parameters: resultsToAdd - the merged results |
toArray | public Object[] toArray()(Code) | | Access getValue as an array
the calculation result as an array (or null if not applicable) |
toDouble | public double toDouble()(Code) | | Access getValue as a double
the calculation result as a double (or 0 if not applicable) |
toEnvelope | public Envelope toEnvelope()(Code) | | Access getValue as an envelope
the calculation result as an envelope (or null if not applicable) |
toFloat | public float toFloat()(Code) | | Access getValue as a float
the calculation result as a float (or 0 if not applicable) |
toGeometry | public Geometry toGeometry()(Code) | | Access getValue as a geometry
the calculation result as a geometry (or null if not applicable) |
toInt | public int toInt()(Code) | | Access getValue as an int
the calculation result as a int (or 0 if not applicable) throws: IOException - |
toList | public List toList()(Code) | | Access getValue as a list
the calculation result as a list (or null if not applicable) |
toLong | public long toLong()(Code) | | Access getValue as a long
the calculation result as a long (or 0 if not applicable) |
toMap | public Map toMap()(Code) | | Access getValue as a map
the calculation result as a map (or null if not applicable) |
toPoint | public Point toPoint()(Code) | | Access getValue as a point
the calculation result as a point (or null if not applicable) |
toSet | public Set toSet()(Code) | | Access getValue as a set
the calculation result as a set (or null if not applicable) |
toString | public String toString()(Code) | | Access getValue as a string
the calculation result as a string (or "" if not applicable) |
|
|
|