Class StreamingBinaryResponseParser
- java.lang.Object
-
- org.apache.solr.client.solrj.ResponseParser
-
- org.apache.solr.client.solrj.impl.BinaryResponseParser
-
- org.apache.solr.client.solrj.impl.StreamingBinaryResponseParser
-
public class StreamingBinaryResponseParser extends BinaryResponseParser
A BinaryResponseParser that sends callback events rather then build a large response- Since:
- solr 4.0
-
-
Field Summary
Fields Modifier and Type Field Description StreamingResponseCallback
callback
FastStreamingDocsCallback
fastCallback
-
Fields inherited from class org.apache.solr.client.solrj.impl.BinaryResponseParser
BINARY_CONTENT_TYPE, stringCache
-
-
Constructor Summary
Constructors Constructor Description StreamingBinaryResponseParser(FastStreamingDocsCallback cb)
StreamingBinaryResponseParser(StreamingResponseCallback cb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedList<Object>
processResponse(InputStream body, String encoding)
-
Methods inherited from class org.apache.solr.client.solrj.impl.BinaryResponseParser
createCodec, getContentType, getVersion, getWriterType, processResponse, setStringCache
-
-
-
-
Field Detail
-
callback
public final StreamingResponseCallback callback
-
fastCallback
public final FastStreamingDocsCallback fastCallback
-
-
Constructor Detail
-
StreamingBinaryResponseParser
public StreamingBinaryResponseParser(StreamingResponseCallback cb)
-
StreamingBinaryResponseParser
public StreamingBinaryResponseParser(FastStreamingDocsCallback cb)
-
-
Method Detail
-
processResponse
public NamedList<Object> processResponse(InputStream body, String encoding)
- Overrides:
processResponse
in classBinaryResponseParser
-
-