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, wait
indent, indent, writeArray, writeArray, writeArray, writeBool, writeBool, writeBool, writeByteArr, writeDate, writeDate, writeDouble, writeDouble, writeFloat, writeFloat, writeInt, writeInt, writeIterator, writeIterator, writeLong, writeLong, writeMap, writeMap, writeMap, writeNamedList, writeNull, writeNumber, writeStr
protected 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 Closeable
close
in interface AutoCloseable
IOException
public boolean doIndent()
doIndent
in interface TextWriter
public Writer getWriter()
getWriter
in interface TextWriter
public void setLevel(int level)
public int level()
level
in interface TextWriter
public int incLevel()
incLevel
in interface TextWriter
public int decLevel()
decLevel
in interface TextWriter
public TextResponseWriter setIndent(boolean doIndent)
setIndent
in interface TextWriter
public final void writeVal(String name, Object val) throws IOException
writeVal
in interface TextWriter
IOException
public 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)
IOException
public abstract void writeSolrDocument(String name, SolrDocument doc, ReturnFields fields, int idx) throws IOException
IOException
public abstract void writeEndDocumentList() throws IOException
IOException
public final void writeSolrDocumentList(String name, SolrDocumentList docs, ReturnFields fields) throws IOException
IOException
public final void writeDocuments(String name, ResultContext res) throws IOException
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.