public class JavaBinUpdateRequestCodec extends Object
JavaBinCodec| 修飾子とタイプ | クラスと説明 |
|---|---|
static interface |
JavaBinUpdateRequestCodec.StreamingUpdateHandler |
| コンストラクタと説明 |
|---|
JavaBinUpdateRequestCodec() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
marshal(org.apache.solr.client.solrj.request.UpdateRequest updateRequest,
OutputStream os)
Converts an UpdateRequest to a NamedList which can be serialized to the
given OutputStream in the javabin format
|
org.apache.solr.client.solrj.request.UpdateRequest |
unmarshal(InputStream is,
JavaBinUpdateRequestCodec.StreamingUpdateHandler handler)
Reads a NamedList from the given InputStream, converts it into a
SolrInputDocument and passes it to the given StreamingUpdateHandler
|
public void marshal(org.apache.solr.client.solrj.request.UpdateRequest updateRequest,
OutputStream os)
throws IOException
updateRequest - the UpdateRequest to be written outos - the OutputStream to which the request is to be writtenIOException - in case of an exception during marshalling or writing to the
streampublic org.apache.solr.client.solrj.request.UpdateRequest unmarshal(InputStream is, JavaBinUpdateRequestCodec.StreamingUpdateHandler handler) throws IOException
is - the InputStream from which to readhandler - an instance of StreamingUpdateHandler to which
SolrInputDocuments are streamed one by oneIOException - in case of an exception while reading from the input stream
or unmarshallingCopyright © 2011-2014. All Rights Reserved.