Package ddf.catalog.data
Interface Result
public interface Result
The Result is used to supplement
Metacard fields when a Metacard is returned from
a query. It adds a relevance score and distance in meters to the Metacard's existing
attributes.- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets the distance in meters.Gets theMetacardwrapped by thisResult.Gets the relevance score.
-
Field Details
-
RELEVANCE
Constant used to specify a sort policy based on relevance.- See Also:
-
DISTANCE
Constant used to specify a sort policy based on distance.- See Also:
-
TEMPORAL
Constant used to specify a sort policy based on temporal data.- See Also:
-
-
Method Details
-
getMetacard
Metacard getMetacard()Gets theMetacardwrapped by thisResult.- Returns:
- the
Metacardwrapped by thisResult
-
getRelevanceScore
Double getRelevanceScore()Gets the relevance score.- Returns:
- relevance score (typical range of 0-1, values over 1 are those that have been boosted)
-
getDistanceInMeters
Double getDistanceInMeters()Gets the distance in meters.- Returns:
- distance in meters, null if
Resultwas not part of a search that was sorted by distance.
-