Package ddf.catalog.operation.impl
Class ResultHighlightImpl
java.lang.Object
ddf.catalog.operation.impl.ResultHighlightImpl
- All Implemented Interfaces:
ddf.catalog.operation.ResultHighlight
-
Constructor Summary
ConstructorsConstructorDescriptionResultHighlightImpl(String resultId) Instantiates a ResultHighlightImpl representing the highlight information for a particular query result.ResultHighlightImpl(String resultId, List<ddf.catalog.operation.ResultAttributeHighlight> attributeHighlights) Instantiates a ResultHighlightImpl representing the highlight information for a particular query result. -
Method Summary
-
Constructor Details
-
ResultHighlightImpl
Instantiates a ResultHighlightImpl representing the highlight information for a particular query result. The attribute highlight data is available to add to or retrieve via thegetAttributeHighlightsmethod. This constructor creates an empty attribute highlight list, indicating that there are no highlights.- Parameters:
resultId- The ID of the result for which the contained highlights are for
-
ResultHighlightImpl
public ResultHighlightImpl(String resultId, List<ddf.catalog.operation.ResultAttributeHighlight> attributeHighlights) Instantiates a ResultHighlightImpl representing the highlight information for a particular query result. Any number ofResultAttributeHighlights may be provided to indicate that more than one attribute was matched in a query. Additional highlight data may be added to the list by first requesting the list of highlights from thegetAttributeHighlightsmethod.- Parameters:
resultId- The ID of the result for which the contained highlights are forattributeHighlights- The list of attribute highlights that apply to the result
-
-
Method Details
-
getResultId
- Specified by:
getResultIdin interfaceddf.catalog.operation.ResultHighlight
-
getAttributeHighlights
- Specified by:
getAttributeHighlightsin interfaceddf.catalog.operation.ResultHighlight
-