public class JavaBinUpdateRequestCodec extends Object
JavaBinCodec| Modifier and Type | Class and Description | 
|---|---|
| static interface  | JavaBinUpdateRequestCodec.StreamingUpdateHandler | 
| Constructor and Description | 
|---|
| JavaBinUpdateRequestCodec() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | marshal(UpdateRequest updateRequest,
       OutputStream os)Converts an UpdateRequest to a NamedList which can be serialized to the given OutputStream in the javabin format | 
| JavaBinUpdateRequestCodec | setReadStringAsCharSeq(boolean flag) | 
| 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 JavaBinUpdateRequestCodec setReadStringAsCharSeq(boolean flag)
public void marshal(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 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 © 2000-2020 Apache Software Foundation. All Rights Reserved.