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
Base response writer for table-oriented data
-
Field Summary
Fields inherited from class org.apache.solr.response.TextResponseWriter
cal, doIndent, level, req, returnFields, rsp, schema, writer -
Constructor Summary
ConstructorsConstructorDescriptionTabularResponseWriter(Writer writer, SolrQueryRequest req, SolrQueryResponse resp) -
Method Summary
Modifier and TypeMethodDescriptionReturns 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) voidwriteArray(String name, Iterator<?> val, int size, boolean raw) voidvoidvoidvoidwriteNamedList(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.TextResponseWriter
close, decLevel, doIndent, getWriter, incLevel, level, setIndent, setLevel, shouldWriteRaw, writeDocuments, writeSolrDocument, writeSolrDocumentList, writeValMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.common.util.TextWriter
indent, 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 Details
-
TabularResponseWriter
-
-
Method Details
-
getFields
Returns fields to be returned in the response -
shouldSkipField
Returns true if field needs to be skipped else false- Parameters:
field- name of the field- Returns:
- boolean value
-
writeResponse
- Throws:
IOException
-
writeNamedList
public void writeNamedList(String name, org.apache.solr.common.util.NamedList<?> val) throws IOException - Throws:
IOException
-
writeStartDocumentList
public void writeStartDocumentList(String name, long start, int size, long numFound, Float maxScore, Boolean numFoundExact) throws IOException - Specified by:
writeStartDocumentListin classTextResponseWriter- Throws:
IOException
-
writeEndDocumentList
- Specified by:
writeEndDocumentListin classTextResponseWriter- Throws:
IOException
-
writeMap
-
writeArray
- Throws:
IOException
-
writeArray
- Throws:
IOException
-
writeDate
- Throws:
IOException
-