public abstract class TextResponseWriter extends Object implements TextWriter
| Modifier and Type | Field and Description |
|---|---|
protected Calendar |
cal |
protected boolean |
doIndent |
protected int |
level |
protected SolrQueryRequest |
req |
protected ReturnFields |
returnFields |
protected SolrQueryResponse |
rsp |
protected IndexSchema |
schema |
protected FastWriter |
writer |
| Constructor and Description |
|---|
TextResponseWriter(Writer writer,
SolrQueryRequest req,
SolrQueryResponse rsp) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
done with this ResponseWriter...
|
int |
decLevel() |
boolean |
doIndent() |
Writer |
getWriter()
returns the Writer that the response is being written to
|
int |
incLevel() |
int |
level() |
TextResponseWriter |
setIndent(boolean doIndent) |
void |
setLevel(int level) |
void |
writeDocuments(String name,
ResultContext res) |
abstract void |
writeEndDocumentList() |
abstract void |
writeSolrDocument(String name,
SolrDocument doc,
ReturnFields fields,
int idx) |
void |
writeSolrDocumentList(String name,
SolrDocumentList docs,
ReturnFields fields) |
abstract void |
writeStartDocumentList(String name,
long start,
int size,
long numFound,
Float maxScore)
Deprecated.
|
void |
writeStartDocumentList(String name,
long start,
int size,
long numFound,
Float maxScore,
Boolean numFoundExact) |
void |
writeVal(String name,
Object val) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitindent, indent, writeArray, writeArray, writeArray, writeBool, writeBool, writeBool, writeByteArr, writeDate, writeDate, writeDouble, writeDouble, writeFloat, writeFloat, writeInt, writeInt, writeIterator, writeLong, writeLong, writeMap, writeMap, writeNamedList, writeNull, writeNumber, writeStrprotected final FastWriter writer
protected final IndexSchema schema
protected final SolrQueryRequest req
protected final SolrQueryResponse rsp
protected ReturnFields returnFields
protected int level
protected boolean doIndent
protected Calendar cal
public TextResponseWriter(Writer writer, SolrQueryRequest req, SolrQueryResponse rsp)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean doIndent()
doIndent in interface TextWriterpublic Writer getWriter()
getWriter in interface TextWriterpublic void setLevel(int level)
public int level()
level in interface TextWriterpublic int incLevel()
incLevel in interface TextWriterpublic int decLevel()
decLevel in interface TextWriterpublic TextResponseWriter setIndent(boolean doIndent)
setIndent in interface TextWriterpublic final void writeVal(String name, Object val) throws IOException
writeVal in interface TextWriterIOExceptionpublic void writeStartDocumentList(String name, long start, int size, long numFound, Float maxScore, Boolean numFoundExact) throws IOException
IOException@Deprecated public abstract void writeStartDocumentList(String name, long start, int size, long numFound, Float maxScore) throws IOException
writeStartDocumentList(String, long, int, long, Float, Boolean)IOExceptionpublic abstract void writeSolrDocument(String name, SolrDocument doc, ReturnFields fields, int idx) throws IOException
IOExceptionpublic abstract void writeEndDocumentList()
throws IOException
IOExceptionpublic final void writeSolrDocumentList(String name, SolrDocumentList docs, ReturnFields fields) throws IOException
IOExceptionpublic final void writeDocuments(String name, ResultContext res) throws IOException
IOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.