Package org.apache.solr.response
Class SmileResponseWriter.SmileWriter
java.lang.Object
org.apache.solr.response.TextResponseWriter
org.apache.solr.response.JSONWriter
org.apache.solr.response.SmileResponseWriter.SmileWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.solr.common.PushWriter,org.apache.solr.common.util.JsonTextWriter,org.apache.solr.common.util.TextWriter
- Enclosing class:
SmileResponseWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.fasterxml.jackson.dataformat.smile.SmileGeneratorprotected final OutputStreamFields inherited from class org.apache.solr.response.JSONWriter
namedListStyle, wrapperFunctionFields inherited from class org.apache.solr.response.TextResponseWriter
cal, doIndent, level, req, returnFields, rsp, schema, writerFields inherited from interface org.apache.solr.common.util.JsonTextWriter
hexdigits, JSON_NL_ARROFARR, JSON_NL_ARROFMAP, JSON_NL_ARROFNTV, JSON_NL_FLAT, JSON_NL_MAP, JSON_NL_STYLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()done with this ResponseWriter...intdecLevel()intincLevel()voidindent()voidindent(int lev) intlevel()voidsetLevel(int level) voidvoidwriteArrayOpener(int size) voidvoidvoidvoidwriteByteArr(String name, byte[] buf, int offset, int len) voidwriteFloat(String name, float val) voidvoidvoidvoidvoidwriteMapOpener(int size) voidvoidvoidwriteNumber(String name, Number val) voidvoidMethods inherited from class org.apache.solr.response.JSONWriter
_writeChar, _writeStr, getNamedListStyle, headerSize, write, writeEndDocumentList, writeSolrDocument, writeStartDocumentListMethods inherited from class org.apache.solr.response.TextResponseWriter
doIndent, getWriter, setIndent, 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.JsonTextWriter
unicodeEscape, writeArray, writeArray, writeArray, writeBool, writeDate, writeDouble, writeFloat, writeInt, writeIterator, writeJsonIter, writeLong, writeMap, writeMap, writeNamedList, writeNamedListAsArrArr, writeNamedListAsArrMap, writeNamedListAsFlat, writeNamedListAsMapMangled, writeNamedListAsMapWithDups, writeStrRawMethods inherited from interface org.apache.solr.common.util.TextWriter
doIndent, getWriter, setIndent, writeArray, writeDate, writeDouble, writeIterator, writeMap, writeVal, writeVal
-
Field Details
-
gen
protected final com.fasterxml.jackson.dataformat.smile.SmileGenerator gen -
out
-
-
Constructor Details
-
SmileWriter
-
-
Method Details
-
writeResponse
- Overrides:
writeResponsein classJSONWriter- Throws:
IOException
-
writeNumber
- Throws:
IOException
-
writeBool
- Throws:
IOException
-
writeNull
- Throws:
IOException
-
writeStr
- Throws:
IOException
-
writeLong
- Throws:
IOException
-
writeInt
- Throws:
IOException
-
writeBool
- Throws:
IOException
-
writeFloat
- Throws:
IOException
-
writeArrayCloser
- Throws:
IOException
-
writeArraySeparator
- Throws:
IOException
-
writeArrayOpener
- Throws:
IOExceptionIllegalArgumentException
-
writeMapCloser
- Throws:
IOException
-
writeMapSeparator
- Throws:
IOException
-
writeMapOpener
- Throws:
IOExceptionIllegalArgumentException
-
writeKey
- Throws:
IOException
-
writeByteArr
- Throws:
IOException
-
setLevel
public void setLevel(int level) - Overrides:
setLevelin classTextResponseWriter
-
level
public int level()- Specified by:
levelin interfaceorg.apache.solr.common.util.TextWriter- Overrides:
levelin classTextResponseWriter
-
indent
- Throws:
IOException
-
indent
- Throws:
IOException
-
incLevel
public int incLevel()- Specified by:
incLevelin interfaceorg.apache.solr.common.util.TextWriter- Overrides:
incLevelin classTextResponseWriter
-
decLevel
public int decLevel()- Specified by:
decLevelin interfaceorg.apache.solr.common.util.TextWriter- Overrides:
decLevelin classTextResponseWriter
-
close
Description copied from class:TextResponseWriterdone with this ResponseWriter... make sure any buffers are flushed to writer- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classTextResponseWriter- Throws:
IOException
-