public abstract class HitRenderer extends Object
Modifier and Type | Field and Description |
---|---|
private static com.yahoo.text.Utf8String |
ATR_LABEL |
private static com.yahoo.text.Utf8String |
ATR_RELEVANCE |
private static com.yahoo.text.Utf8String |
ATR_TYPE |
private static com.yahoo.text.Utf8String |
TAG_BUCKET_FROM |
private static com.yahoo.text.Utf8String |
TAG_BUCKET_TO |
private static com.yahoo.text.Utf8String |
TAG_CONTINUATION |
private static com.yahoo.text.Utf8String |
TAG_CONTINUATION_ID |
private static com.yahoo.text.Utf8String |
TAG_GROUP |
private static com.yahoo.text.Utf8String |
TAG_GROUP_ID |
private static com.yahoo.text.Utf8String |
TAG_GROUP_LIST |
private static com.yahoo.text.Utf8String |
TAG_HIT_LIST |
private static com.yahoo.text.Utf8String |
TAG_OUTPUT |
Constructor and Description |
---|
HitRenderer() |
Modifier and Type | Method and Description |
---|---|
private static Object |
getBucketFrom(BucketGroupId id) |
private static Object |
getBucketTo(BucketGroupId id) |
private static Object |
getIdValue(ValueGroupId id) |
private static void |
renderContinuation(String id,
Continuation continuation,
com.yahoo.text.XMLWriter writer) |
private static void |
renderContinuations(Map<String,Continuation> continuations,
com.yahoo.text.XMLWriter writer) |
private static void |
renderGroupId(GroupId id,
com.yahoo.text.XMLWriter writer) |
static boolean |
renderHeader(HitGroup hit,
com.yahoo.text.XMLWriter writer)
Renders the header for the given grouping hit.
|
private static final com.yahoo.text.Utf8String ATR_LABEL
private static final com.yahoo.text.Utf8String ATR_RELEVANCE
private static final com.yahoo.text.Utf8String ATR_TYPE
private static final com.yahoo.text.Utf8String TAG_BUCKET_FROM
private static final com.yahoo.text.Utf8String TAG_BUCKET_TO
private static final com.yahoo.text.Utf8String TAG_CONTINUATION
private static final com.yahoo.text.Utf8String TAG_CONTINUATION_ID
private static final com.yahoo.text.Utf8String TAG_GROUP_LIST
private static final com.yahoo.text.Utf8String TAG_GROUP
private static final com.yahoo.text.Utf8String TAG_GROUP_ID
private static final com.yahoo.text.Utf8String TAG_HIT_LIST
private static final com.yahoo.text.Utf8String TAG_OUTPUT
public static boolean renderHeader(HitGroup hit, com.yahoo.text.XMLWriter writer) throws IOException
Post-condition if this is a grouping hit: The hit tag is open.
hit
- The hit whose header to render.writer
- The writer to render to.IOException
- Thrown if there was a problem writing.private static void renderGroupId(GroupId id, com.yahoo.text.XMLWriter writer)
private static Object getIdValue(ValueGroupId id)
private static Object getBucketFrom(BucketGroupId id)
private static Object getBucketTo(BucketGroupId id)
private static void renderContinuations(Map<String,Continuation> continuations, com.yahoo.text.XMLWriter writer)
private static void renderContinuation(String id, Continuation continuation, com.yahoo.text.XMLWriter writer)
Copyright © 2017. All rights reserved.