Package org.apache.solr.response
Class TabularResponseWriter
- java.lang.Object
- 
- org.apache.solr.response.TextResponseWriter
- 
- org.apache.solr.response.TabularResponseWriter
 
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- org.apache.solr.common.PushWriter,- org.apache.solr.common.util.TextWriter
 
 public abstract class TabularResponseWriter extends TextResponseWriter Base response writer for table-oriented data
- 
- 
Field Summary- 
Fields inherited from class org.apache.solr.response.TextResponseWritercal, doIndent, level, req, returnFields, rsp, schema, writer
 
- 
 - 
Constructor SummaryConstructors Constructor Description TabularResponseWriter(Writer writer, SolrQueryRequest req, SolrQueryResponse resp)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>getFields()Returns fields to be returned in the responsebooleanshouldSkipField(String field)Returns true if field needs to be skipped else falsevoidwriteArray(String name, Iterator<?> val, boolean raw)voidwriteDate(String name, Date val)voidwriteEndDocumentList()voidwriteMap(String name, Map<?,?> val, boolean excludeOuter, boolean isFirstVal)voidwriteNamedList(String name, org.apache.solr.common.util.NamedList<?> val)voidwriteResponse(Object responseObj)voidwriteStartDocumentList(String name, long start, int size, long numFound, Float maxScore, Boolean numFoundExact)- 
Methods inherited from class org.apache.solr.response.TextResponseWriterclose, decLevel, doIndent, getWriter, incLevel, level, setIndent, setLevel, shouldWriteRaw, writeDocuments, writeSolrDocument, writeSolrDocumentList, writeVal
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.solr.common.util.TextWriterindent, indent, writeArray, writeArray, writeBool, writeBool, writeBool, writeByteArr, writeDate, writeDouble, writeDouble, writeFloat, writeFloat, writeInt, writeInt, writeIterator, writeIterator, writeLong, writeLong, writeMap, writeMap, writeNull, writeNumber, writeStr, writeStrRaw, writeVal
 
- 
 
- 
- 
- 
Constructor Detail- 
TabularResponseWriterpublic TabularResponseWriter(Writer writer, SolrQueryRequest req, SolrQueryResponse resp) 
 
- 
 - 
Method Detail- 
getFieldspublic Collection<String> getFields() Returns fields to be returned in the response
 - 
shouldSkipFieldpublic boolean shouldSkipField(String field) Returns true if field needs to be skipped else false- Parameters:
- field- name of the field
- Returns:
- boolean value
 
 - 
writeResponsepublic void writeResponse(Object responseObj) throws IOException - Throws:
- IOException
 
 - 
writeNamedListpublic void writeNamedList(String name, org.apache.solr.common.util.NamedList<?> val) throws IOException - Throws:
- IOException
 
 - 
writeStartDocumentListpublic void writeStartDocumentList(String name, long start, int size, long numFound, Float maxScore, Boolean numFoundExact) throws IOException - Specified by:
- writeStartDocumentListin class- TextResponseWriter
- Throws:
- IOException
 
 - 
writeEndDocumentListpublic void writeEndDocumentList() throws IOException- Specified by:
- writeEndDocumentListin class- TextResponseWriter
- Throws:
- IOException
 
 - 
writeMappublic void writeMap(String name, Map<?,?> val, boolean excludeOuter, boolean isFirstVal) 
 - 
writeArraypublic void writeArray(String name, Iterator<?> val, boolean raw) throws IOException - Throws:
- IOException
 
 - 
writeDatepublic void writeDate(String name, Date val) throws IOException - Throws:
- IOException
 
 
- 
 
-