Package com.yahoo.search.grouping.result
Class HitRenderer
- java.lang.Object
-
- com.yahoo.search.grouping.result.HitRenderer
-
public abstract class HitRenderer extends java.lang.Object
A helper for rendering grouping results.- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Constructor Description HitRenderer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
renderHeader(HitGroup hit, com.yahoo.text.XMLWriter writer)
Renders the header for the given grouping hit.
-
-
-
Method Detail
-
renderHeader
public static boolean renderHeader(HitGroup hit, com.yahoo.text.XMLWriter writer) throws java.io.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:
java.io.IOException
- Thrown if there was a problem writing.
-
-