public class SchemaXmlWriter extends TextResponseWriter
cal, doIndent, level, req, returnFields, rsp, schema, writer
Constructor and Description |
---|
SchemaXmlWriter(Writer writer,
SolrQueryRequest req,
SolrQueryResponse rsp) |
Modifier and Type | Method and Description |
---|---|
void |
setEmitManagedSchemaDoNotEditWarning(boolean emitManagedSchemaDoNotEditWarning) |
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) |
void |
writeStartDocumentList(String name,
long start,
int size,
long numFound,
Float maxScore) |
void |
writeStr(String name,
String val,
boolean escape) |
close, decLevel, getWriter, incLevel, indent, indent, level, setIndent, setLevel, writeArray, writeBool, writeBool, writeByteArr, writeDate, writeDocuments, writeInt, writeIterator, writeLong, writeMap, writeNumber, writeSolrDocumentList, writeVal
public SchemaXmlWriter(Writer writer, SolrQueryRequest req, SolrQueryResponse rsp)
public void setEmitManagedSchemaDoNotEditWarning(boolean emitManagedSchemaDoNotEditWarning)
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 writeNamedList(String name, NamedList val) throws IOException
writeNamedList
in class TextResponseWriter
IOException
public void writeMap(String name, Map map, boolean excludeOuter, boolean isFirstVal) throws IOException
writeMap
in class TextResponseWriter
IOException
public void writeArray(String name, Object[] val) throws IOException
writeArray
in class TextResponseWriter
IOException
public void writeArray(String name, Iterator iter) throws IOException
writeArray
in class TextResponseWriter
IOException
public void writeNull(String name) throws IOException
writeNull
in class TextResponseWriter
IOException
public void writeStr(String name, String val, boolean escape) throws IOException
writeStr
in class TextResponseWriter
IOException
public void writeInt(String name, String val) throws IOException
TextResponseWriter
writeInt
in class TextResponseWriter
IOException
public void writeLong(String name, String val) throws IOException
TextResponseWriter
writeLong
in class TextResponseWriter
IOException
public void writeBool(String name, String val) throws IOException
TextResponseWriter
writeBool
in class TextResponseWriter
IOException
public void writeFloat(String name, String val) throws IOException
TextResponseWriter
writeFloat
in class TextResponseWriter
IOException
public void writeFloat(String name, float val) throws IOException
writeFloat
in class TextResponseWriter
IOException
public void writeDouble(String name, String val) throws IOException
TextResponseWriter
writeDouble
in class TextResponseWriter
IOException
public void writeDouble(String name, double val) throws IOException
writeDouble
in class TextResponseWriter
IOException
public void writeDate(String name, String val) throws IOException
TextResponseWriter
writeDate
in class TextResponseWriter
IOException
public void writeStartDocumentList(String name, long start, int size, long numFound, Float maxScore) throws IOException
writeStartDocumentList
in class TextResponseWriter
IOException
public void writeSolrDocument(String name, SolrDocument doc, ReturnFields returnFields, int idx) throws IOException
writeSolrDocument
in class TextResponseWriter
IOException
public void writeEndDocumentList() throws IOException
writeEndDocumentList
in class TextResponseWriter
IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.