Package org.apache.solr.response
Class XMLWriter
java.lang.Object
org.apache.solr.response.TextResponseWriter
org.apache.solr.response.XMLWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.solr.common.PushWriter,org.apache.solr.common.util.TextWriter
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Field Summary
Fields inherited from class org.apache.solr.response.TextResponseWriter
cal, doIndent, level, req, returnFields, rsp, schema, writer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteArray(String name, Object[] val, boolean raw) voidwriteArray(String name, Iterator<?> iter, boolean raw) voidwriteArray(String name, Iterator<?> iter, int size, boolean raw) voidvoidvoidvoidwriteDouble(String name, double val) voidwriteDouble(String name, String val) voidvoidwriteFloat(String name, float val) voidwriteFloat(String name, String val) voidvoidwriteIterator(String name, org.apache.solr.common.IteratorWriter val, boolean raw) voidvoidvoidvoidwriteNamedList(String name, org.apache.solr.common.util.NamedList<?> val) voidvoidstatic voidwriteResponse(Writer writer, SolrQueryRequest req, SolrQueryResponse rsp) voidwriteSolrDocument(String name, org.apache.solr.common.SolrDocument doc, ReturnFields returnFields, int idx) The SolrDocument should already have multivalued fields implemented as Collections -- this will not rewrite to <arr>voidwriteStartDocumentList(String name, long start, int size, long numFound, Float maxScore, Boolean numFoundExact) voidvoidwriteStrRaw(String name, String val) Methods inherited from class org.apache.solr.response.TextResponseWriter
close, decLevel, doIndent, getWriter, incLevel, level, setIndent, setLevel, shouldWriteRaw, writeDocuments, 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, writeBool, writeBool, writeByteArr, writeDate, writeInt, writeIterator, writeLong, writeMap, writeNumber, writeVal
-
Constructor Details
-
XMLWriter
-
-
Method Details
-
writeResponse
public static void writeResponse(Writer writer, SolrQueryRequest req, SolrQueryResponse rsp) throws IOException - Throws:
IOException
-
writeResponse
- Throws:
IOException
-
writeAttr
- 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
-
writeSolrDocument
public void writeSolrDocument(String name, org.apache.solr.common.SolrDocument doc, ReturnFields returnFields, int idx) throws IOException The SolrDocument should already have multivalued fields implemented as Collections -- this will not rewrite to <arr>- Specified by:
writeSolrDocumentin classTextResponseWriter- Throws:
IOException
-
writeEndDocumentList
- Specified by:
writeEndDocumentListin classTextResponseWriter- Throws:
IOException
-
writeNamedList
public void writeNamedList(String name, org.apache.solr.common.util.NamedList<?> val) throws IOException - Throws:
IOException
-
writeMap
- Throws:
IOException
-
writeMap
public void writeMap(String name, Map<?, ?> map, boolean excludeOuter, boolean isFirstVal) throws IOException- Throws:
IOException
-
writeArray
- Throws:
IOException
-
writeArray
- Throws:
IOException
-
writeArray
- Throws:
IOException
-
writeIterator
public void writeIterator(String name, org.apache.solr.common.IteratorWriter val, boolean raw) throws IOException - Throws:
IOException
-
writeNull
- Throws:
IOException
-
writeStrRaw
- Throws:
IOException
-
writeStr
- Throws:
IOException
-
writeInt
- Throws:
IOException
-
writeLong
- Throws:
IOException
-
writeBool
- Throws:
IOException
-
writeFloat
- Throws:
IOException
-
writeFloat
- Throws:
IOException
-
writeDouble
- Throws:
IOException
-
writeDouble
- Throws:
IOException
-
writeDate
- Throws:
IOException
-