public abstract class TabularResponseWriter extends TextResponseWriter
cal, doIndent, level, req, returnFields, rsp, schema, writer
Constructor and Description |
---|
TabularResponseWriter(Writer writer,
SolrQueryRequest req,
SolrQueryResponse resp) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getFields()
Returns fields to be returned in the response
|
boolean |
shouldSkipField(String field)
Returns true if field needs to be skipped else false
|
void |
writeArray(String name,
Iterator val) |
void |
writeDate(String name,
Date val) |
void |
writeEndDocumentList() |
void |
writeMap(String name,
Map val,
boolean excludeOuter,
boolean isFirstVal) |
void |
writeNamedList(String name,
NamedList val) |
void |
writeResponse(Object responseObj) |
void |
writeStartDocumentList(String name,
long start,
int size,
long numFound,
Float maxScore) |
void |
writeStartDocumentList(String name,
long start,
int size,
long numFound,
Float maxScore,
Boolean numFoundExact) |
close, decLevel, doIndent, getWriter, incLevel, level, setIndent, setLevel, writeDocuments, writeSolrDocument, writeSolrDocumentList, writeVal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
indent, indent, writeArray, writeArray, writeBool, writeBool, writeBool, writeByteArr, writeDate, writeDouble, writeDouble, writeFloat, writeFloat, writeInt, writeInt, writeIterator, writeIterator, writeLong, writeLong, writeMap, writeMap, writeNull, writeNumber, writeStr
public TabularResponseWriter(Writer writer, SolrQueryRequest req, SolrQueryResponse resp)
public Collection<String> getFields()
public boolean shouldSkipField(String field)
field
- name of the fieldpublic void writeResponse(Object responseObj) throws IOException
IOException
public void writeNamedList(String name, NamedList val) throws IOException
IOException
public void writeStartDocumentList(String name, long start, int size, long numFound, Float maxScore) throws IOException
writeStartDocumentList
in class TextResponseWriter
IOException
public void writeStartDocumentList(String name, long start, int size, long numFound, Float maxScore, Boolean numFoundExact) throws IOException
writeStartDocumentList
in class TextResponseWriter
IOException
public void writeEndDocumentList() throws IOException
writeEndDocumentList
in class TextResponseWriter
IOException
public void writeMap(String name, Map val, boolean excludeOuter, boolean isFirstVal) throws IOException
IOException
public void writeArray(String name, Iterator val) throws IOException
IOException
public void writeDate(String name, Date val) throws IOException
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.