|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.solr.response.TextResponseWriter
org.apache.solr.response.XMLWriter
public class XMLWriter
| Field Summary | |
|---|---|
static float |
CURRENT_VERSION
|
| Fields inherited from class org.apache.solr.response.TextResponseWriter |
|---|
cal, doIndent, level, req, returnFields, rsp, schema, writer |
| Constructor Summary | |
|---|---|
XMLWriter(Writer writer,
SolrQueryRequest req,
SolrQueryResponse rsp)
|
|
| Method Summary | |
|---|---|
void |
writeArray(String name,
Iterator iter)
|
void |
writeArray(String name,
Object[] val)
|
void |
writeAttr(String name,
String val,
boolean escape)
|
void |
writeBool(String name,
String val)
if this form of the method is called, val is the Java string form of a boolean |
void |
writeDate(String name,
String val)
if this form of the method is called, val is the Solr ISO8601 based date format |
void |
writeDouble(String name,
double val)
|
void |
writeDouble(String name,
String val)
if this form of the method is called, val is the Java string form of a double |
void |
writeEndDocumentList()
|
void |
writeFloat(String name,
float val)
|
void |
writeFloat(String name,
String val)
if this form of the method is called, val is the Java string form of a float |
void |
writeInt(String name,
String val)
if this form of the method is called, val is the Java string form of an int |
void |
writeLong(String name,
String val)
if this form of the method is called, val is the Java string form of a long |
void |
writeMap(String name,
Map map,
boolean excludeOuter,
boolean isFirstVal)
|
void |
writeNamedList(String name,
NamedList val)
|
void |
writeNull(String name)
|
void |
writeResponse()
|
static void |
writeResponse(Writer writer,
SolrQueryRequest req,
SolrQueryResponse rsp)
|
void |
writeSolrDocument(String name,
SolrDocument doc,
ReturnFields returnFields,
int idx)
The SolrDocument should already have multivalued fields implemented as Collections -- this will not rewrite to <arr> |
void |
writeStartDocumentList(String name,
long start,
int size,
long numFound,
Float maxScore)
|
void |
writeStr(String name,
String val,
boolean escape)
|
| Methods inherited from class org.apache.solr.response.TextResponseWriter |
|---|
close, decLevel, getWriter, incLevel, indent, indent, level, setIndent, setLevel, toSolrDocument, writeBool, writeByteArr, writeDate, writeDocuments, writeInt, writeLong, writeSolrDocumentList, writeVal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static float CURRENT_VERSION
| Constructor Detail |
|---|
public XMLWriter(Writer writer,
SolrQueryRequest req,
SolrQueryResponse rsp)
| Method Detail |
|---|
public static void writeResponse(Writer writer,
SolrQueryRequest req,
SolrQueryResponse rsp)
throws IOException
IOException
public void writeResponse()
throws IOException
IOException
public void writeAttr(String name,
String val,
boolean escape)
throws IOException
IOException
public void writeStartDocumentList(String name,
long start,
int size,
long numFound,
Float maxScore)
throws IOException
writeStartDocumentList in class TextResponseWriterIOException
public void writeSolrDocument(String name,
SolrDocument doc,
ReturnFields returnFields,
int idx)
throws IOException
writeSolrDocument in class TextResponseWriterIOException
public void writeEndDocumentList()
throws IOException
writeEndDocumentList in class TextResponseWriterIOException
public void writeNamedList(String name,
NamedList val)
throws IOException
writeNamedList in class TextResponseWriterIOException
public void writeMap(String name,
Map map,
boolean excludeOuter,
boolean isFirstVal)
throws IOException
writeMap in class TextResponseWriterIOException
public void writeArray(String name,
Object[] val)
throws IOException
writeArray in class TextResponseWriterIOException
public void writeArray(String name,
Iterator iter)
throws IOException
writeArray in class TextResponseWriterIOException
public void writeNull(String name)
throws IOException
writeNull in class TextResponseWriterIOException
public void writeStr(String name,
String val,
boolean escape)
throws IOException
writeStr in class TextResponseWriterIOException
public void writeInt(String name,
String val)
throws IOException
TextResponseWriter
writeInt in class TextResponseWriterIOException
public void writeLong(String name,
String val)
throws IOException
TextResponseWriter
writeLong in class TextResponseWriterIOException
public void writeBool(String name,
String val)
throws IOException
TextResponseWriter
writeBool in class TextResponseWriterIOException
public void writeFloat(String name,
String val)
throws IOException
TextResponseWriter
writeFloat in class TextResponseWriterIOException
public void writeFloat(String name,
float val)
throws IOException
writeFloat in class TextResponseWriterIOException
public void writeDouble(String name,
String val)
throws IOException
TextResponseWriter
writeDouble in class TextResponseWriterIOException
public void writeDouble(String name,
double val)
throws IOException
writeDouble in class TextResponseWriterIOException
public void writeDate(String name,
String val)
throws IOException
TextResponseWriter
writeDate in class TextResponseWriterIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||