@Deprecated public final class DefaultRenderer extends com.yahoo.processing.rendering.AsynchronousSectionedRenderer<Result>
Modifier and Type | Class and Description |
---|---|
static class |
DefaultRenderer.RenderingVisitor
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private static com.yahoo.text.Utf8String |
CODE
Deprecated.
|
private static com.yahoo.text.Utf8String |
COVERAGE
Deprecated.
|
private static com.yahoo.text.Utf8String |
COVERAGE_DOCS
Deprecated.
|
private static com.yahoo.text.Utf8String |
COVERAGE_FULL
Deprecated.
|
private static com.yahoo.text.Utf8String |
COVERAGE_NODES
Deprecated.
|
static String |
DEFAULT_ENCODING
Deprecated.
|
static String |
DEFAULT_MIMETYPE
Deprecated.
|
private static com.yahoo.text.Utf8String |
ERROR
Deprecated.
|
private static com.yahoo.text.Utf8String |
FIELD
Deprecated.
|
private com.yahoo.concurrent.CopyOnWriteHashMap<String,com.yahoo.text.Utf8String> |
fieldNameMap
Deprecated.
|
private static com.yahoo.text.Utf8String |
GROUP
Deprecated.
|
private static com.yahoo.text.Utf8String |
HIT
Deprecated.
|
private static com.yahoo.text.Utf8String |
ID
Deprecated.
|
private static com.yahoo.text.Utf8String |
NAME
Deprecated.
|
private static com.yahoo.text.Utf8String |
QUERY_TIME
Deprecated.
|
private static com.yahoo.text.Utf8String |
RELEVANCY
Deprecated.
|
private static com.yahoo.text.Utf8String |
RESULT
Deprecated.
|
private static com.yahoo.text.Utf8String |
RESULTS
Deprecated.
|
private static com.yahoo.text.Utf8String |
RESULTS_FULL
Deprecated.
|
private static com.yahoo.text.Utf8String |
SEARCH_TIME
Deprecated.
|
private static com.yahoo.text.Utf8String |
SOURCE
Deprecated.
|
private static com.yahoo.text.Utf8String |
SUMMARY_FETCH_TIME
Deprecated.
|
private static com.yahoo.text.Utf8String |
TOTAL_HIT_COUNT
Deprecated.
|
private static com.yahoo.text.Utf8String |
TYPE
Deprecated.
|
private com.yahoo.text.XMLWriter |
writer
Deprecated.
|
Constructor and Description |
---|
DefaultRenderer()
Deprecated.
|
DefaultRenderer(Executor executor)
Deprecated.
Creates a json renderer using a custom executor.
|
Modifier and Type | Method and Description |
---|---|
private String |
asXML(Object value)
Deprecated.
|
void |
beginList(com.yahoo.processing.response.DataList<?> list)
Deprecated.
|
void |
beginResponse(OutputStream stream)
Deprecated.
|
void |
data(com.yahoo.processing.response.Data data)
Deprecated.
|
protected void |
emptyResult(com.yahoo.text.XMLWriter writer,
Result result)
Deprecated.
|
void |
endList(com.yahoo.processing.response.DataList<?> list)
Deprecated.
|
void |
endResponse()
Deprecated.
|
void |
error(com.yahoo.text.XMLWriter writer,
Result result)
Deprecated.
|
String |
getEncoding()
Deprecated.
|
String |
getMimeType()
Deprecated.
|
String |
getRequestedEncoding(Query query)
Deprecated.
Returns the encoding of the query, or the encoding given by the template if none is set
|
private Result |
getResult()
Deprecated.
|
private void |
header(com.yahoo.text.XMLWriter writer,
Result result)
Deprecated.
|
void |
init()
Deprecated.
|
void |
queryContext(com.yahoo.text.XMLWriter writer,
QueryContext queryContext,
Query owner)
Deprecated.
|
protected static void |
renderCoverageAttributes(Coverage coverage,
com.yahoo.text.XMLWriter writer)
Deprecated.
|
private void |
renderField(com.yahoo.text.XMLWriter writer,
String name,
Object value)
Deprecated.
|
private void |
renderFieldContent(com.yahoo.text.XMLWriter writer,
Object value)
Deprecated.
|
private void |
renderGroup(com.yahoo.text.XMLWriter writer,
HitGroup hit)
Deprecated.
|
private void |
renderHitAttributes(com.yahoo.text.XMLWriter writer,
Hit hit)
Deprecated.
|
private void |
renderHitFields(com.yahoo.text.XMLWriter writer,
Hit hit)
Deprecated.
|
private void |
renderHitGroup(com.yahoo.text.XMLWriter writer,
HitGroup hit)
Deprecated.
|
private void |
renderHitGroupOfTypeGroupHit(com.yahoo.text.XMLWriter writer,
HitGroup hit)
Deprecated.
|
private void |
renderId(com.yahoo.text.XMLWriter writer,
HitGroup hit)
Deprecated.
|
static void |
renderMessageDefaultErrorHit(com.yahoo.text.XMLWriter writer,
ErrorMessage error)
Deprecated.
|
private void |
renderSimpleField(com.yahoo.text.XMLWriter writer,
String relevancyFieldName,
Relevance relevance)
Deprecated.
|
private void |
renderSingularHit(com.yahoo.text.XMLWriter writer,
Hit hit)
Deprecated.
|
private void |
renderSyntheticRelevanceField(com.yahoo.text.XMLWriter writer,
Hit hit)
Deprecated.
|
private void |
renderTime(com.yahoo.text.XMLWriter writer,
Result result)
Deprecated.
|
static boolean |
simpleRenderDefaultErrorHit(com.yahoo.text.XMLWriter writer,
ErrorHit defaultErrorHit)
Deprecated.
|
private boolean |
simpleRenderHit(com.yahoo.text.XMLWriter writer,
Hit hit)
Deprecated.
|
private com.yahoo.text.XMLWriter |
wrapWriter(Writer writer)
Deprecated.
|
private void |
writeCloseFieldElement(com.yahoo.text.XMLWriter writer)
Deprecated.
|
private void |
writeOpenFieldElement(com.yahoo.text.XMLWriter writer,
String relevancyFieldName)
Deprecated.
|
clientClosed, deconstruct, getExecution, getRecursionLevel, getResponse, onClientClosed, render, renderBeforeHandover, setNetworkWiring
public static final String DEFAULT_MIMETYPE
public static final String DEFAULT_ENCODING
private static final com.yahoo.text.Utf8String RESULT
private static final com.yahoo.text.Utf8String GROUP
private static final com.yahoo.text.Utf8String ID
private static final com.yahoo.text.Utf8String FIELD
private static final com.yahoo.text.Utf8String HIT
private static final com.yahoo.text.Utf8String ERROR
private static final com.yahoo.text.Utf8String TOTAL_HIT_COUNT
private static final com.yahoo.text.Utf8String QUERY_TIME
private static final com.yahoo.text.Utf8String SUMMARY_FETCH_TIME
private static final com.yahoo.text.Utf8String SEARCH_TIME
private static final com.yahoo.text.Utf8String NAME
private static final com.yahoo.text.Utf8String CODE
private static final com.yahoo.text.Utf8String COVERAGE_DOCS
private static final com.yahoo.text.Utf8String COVERAGE_NODES
private static final com.yahoo.text.Utf8String COVERAGE_FULL
private static final com.yahoo.text.Utf8String COVERAGE
private static final com.yahoo.text.Utf8String RESULTS_FULL
private static final com.yahoo.text.Utf8String RESULTS
private static final com.yahoo.text.Utf8String TYPE
private static final com.yahoo.text.Utf8String RELEVANCY
private static final com.yahoo.text.Utf8String SOURCE
private final com.yahoo.concurrent.CopyOnWriteHashMap<String,com.yahoo.text.Utf8String> fieldNameMap
private com.yahoo.text.XMLWriter writer
public DefaultRenderer()
public DefaultRenderer(Executor executor)
public void init()
init
in class com.yahoo.processing.rendering.AsynchronousSectionedRenderer<Result>
public String getEncoding()
getEncoding
in class com.yahoo.processing.rendering.Renderer<Result>
public String getMimeType()
getMimeType
in class com.yahoo.processing.rendering.Renderer<Result>
private com.yahoo.text.XMLWriter wrapWriter(Writer writer)
private void header(com.yahoo.text.XMLWriter writer, Result result) throws IOException
IOException
private void renderTime(com.yahoo.text.XMLWriter writer, Result result)
protected static void renderCoverageAttributes(Coverage coverage, com.yahoo.text.XMLWriter writer) throws IOException
IOException
public void error(com.yahoo.text.XMLWriter writer, Result result) throws IOException
IOException
protected void emptyResult(com.yahoo.text.XMLWriter writer, Result result) throws IOException
IOException
public void queryContext(com.yahoo.text.XMLWriter writer, QueryContext queryContext, Query owner) throws IOException
IOException
private void renderSingularHit(com.yahoo.text.XMLWriter writer, Hit hit)
private void renderHitFields(com.yahoo.text.XMLWriter writer, Hit hit)
private void renderField(com.yahoo.text.XMLWriter writer, String name, Object value)
private void renderFieldContent(com.yahoo.text.XMLWriter writer, Object value)
private void renderSyntheticRelevanceField(com.yahoo.text.XMLWriter writer, Hit hit)
private void renderSimpleField(com.yahoo.text.XMLWriter writer, String relevancyFieldName, Relevance relevance)
private void writeCloseFieldElement(com.yahoo.text.XMLWriter writer)
private void writeOpenFieldElement(com.yahoo.text.XMLWriter writer, String relevancyFieldName)
private void renderHitAttributes(com.yahoo.text.XMLWriter writer, Hit hit)
private void renderHitGroup(com.yahoo.text.XMLWriter writer, HitGroup hit) throws IOException
IOException
private void renderGroup(com.yahoo.text.XMLWriter writer, HitGroup hit)
private void renderHitGroupOfTypeGroupHit(com.yahoo.text.XMLWriter writer, HitGroup hit)
private void renderId(com.yahoo.text.XMLWriter writer, HitGroup hit)
private boolean simpleRenderHit(com.yahoo.text.XMLWriter writer, Hit hit) throws IOException
IOException
public static boolean simpleRenderDefaultErrorHit(com.yahoo.text.XMLWriter writer, ErrorHit defaultErrorHit) throws IOException
IOException
public static void renderMessageDefaultErrorHit(com.yahoo.text.XMLWriter writer, ErrorMessage error) throws IOException
IOException
private Result getResult()
public void beginResponse(OutputStream stream) throws IOException
beginResponse
in class com.yahoo.processing.rendering.AsynchronousSectionedRenderer<Result>
IOException
public final String getRequestedEncoding(Query query)
public void beginList(com.yahoo.processing.response.DataList<?> list) throws IOException
beginList
in class com.yahoo.processing.rendering.AsynchronousSectionedRenderer<Result>
IOException
public void data(com.yahoo.processing.response.Data data) throws IOException
data
in class com.yahoo.processing.rendering.AsynchronousSectionedRenderer<Result>
IOException
public void endList(com.yahoo.processing.response.DataList<?> list)
endList
in class com.yahoo.processing.rendering.AsynchronousSectionedRenderer<Result>
public void endResponse()
endResponse
in class com.yahoo.processing.rendering.AsynchronousSectionedRenderer<Result>
Copyright © 2018. All rights reserved.