Class HitRenderer

java.lang.Object
com.yahoo.search.grouping.result.HitRenderer

public abstract class HitRenderer extends Object
A helper for rendering grouping results.
Author:
Simon Thoresen Hult
  • 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.