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, writeValclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitindent, indent, writeArray, writeArray, writeBool, writeBool, writeBool, writeByteArr, writeDate, writeDouble, writeDouble, writeFloat, writeFloat, writeInt, writeInt, writeIterator, writeLong, writeLong, writeMap, writeNull, writeNumber, writeStrpublic 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
IOExceptionpublic void writeNamedList(String name, NamedList val) throws IOException
IOExceptionpublic void writeStartDocumentList(String name, long start, int size, long numFound, Float maxScore) throws IOException
writeStartDocumentList in class TextResponseWriterIOExceptionpublic void writeStartDocumentList(String name, long start, int size, long numFound, Float maxScore, Boolean numFoundExact) throws IOException
writeStartDocumentList in class TextResponseWriterIOExceptionpublic void writeEndDocumentList()
throws IOException
writeEndDocumentList in class TextResponseWriterIOExceptionpublic void writeMap(String name, Map val, boolean excludeOuter, boolean isFirstVal) throws IOException
IOExceptionpublic void writeArray(String name, Iterator val) throws IOException
IOExceptionpublic void writeDate(String name, Date val) throws IOException
IOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.