Package com.yahoo.search.grouping.result
Class HitRenderer
java.lang.Object
com.yahoo.search.grouping.result.HitRenderer
A helper for rendering grouping results.
- Author:
- Simon Thoresen Hult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
renderHeader
(HitGroup hit, com.yahoo.text.XMLWriter writer) Renders the header for the given grouping hit.
-
Constructor Details
-
HitRenderer
public HitRenderer()
-
-
Method Details
-
renderHeader
public static boolean renderHeader(HitGroup hit, com.yahoo.text.XMLWriter writer) throws IOException Renders the header for the given grouping hit. If the hit is not a grouping hit, this method does nothing and returns false.Post-condition if this is a grouping hit: The hit tag is open.
- Parameters:
hit
- The hit whose header to render.writer
- The writer to render to.- Returns:
- True if the hit was rendered.
- Throws:
IOException
- Thrown if there was a problem writing.
-