Package ddf.catalog.data.impl
Class ResultImpl
java.lang.Object
ddf.catalog.data.impl.ResultImpl
- All Implemented Interfaces:
ddf.catalog.data.Result
Default implementation of the
Result interface, which is a Metacard catalog entry
wrapped with the extra attributes relevanceScore and distanceInMeters.- Since:
- 1.0
-
Field Summary
Fields inherited from interface ddf.catalog.data.Result
DISTANCE, RELEVANCE, TEMPORAL -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorResultImpl(ddf.catalog.data.Metacard metacard) Instantiates a new metacard result. -
Method Summary
Modifier and TypeMethodDescriptionddf.catalog.data.MetacardvoidsetDistanceInMeters(Double inDistanceInMeters) Sets the distance in meters.voidsetMetacard(ddf.catalog.data.Metacard metacard) Sets theMetacard.voidsetRelevanceScore(Double inRelevanceScore) Sets the relevance score.toString()String representation of thisResultImpl.
-
Constructor Details
-
ResultImpl
public ResultImpl()Default constructor -
ResultImpl
public ResultImpl(ddf.catalog.data.Metacard metacard) Instantiates a new metacard result.- Parameters:
metacard- theMetacard
-
-
Method Details
-
getDistanceInMeters
- Specified by:
getDistanceInMetersin interfaceddf.catalog.data.Result
-
setDistanceInMeters
Sets the distance in meters.- Parameters:
inDistanceInMeters- the new distance in meters
-
getRelevanceScore
- Specified by:
getRelevanceScorein interfaceddf.catalog.data.Result- Returns:
- relevanceScore
-
setRelevanceScore
Sets the relevance score.- Parameters:
inRelevanceScore- the new relevance score
-
toString
String representation of thisResultImpl. -
getMetacard
public ddf.catalog.data.Metacard getMetacard()- Specified by:
getMetacardin interfaceddf.catalog.data.Result
-
setMetacard
public void setMetacard(ddf.catalog.data.Metacard metacard) Sets theMetacard.- Parameters:
metacard- theMetacard
-