public final class DeleteStream extends UpdateStream implements Expressible
TupleStream.IgnoreExceptionMapWriter.EntryWriterBATCH_INDEXED_FIELD_NAME| Constructor and Description | 
|---|
| DeleteStream(StreamExpression expression,
            StreamFactory factory) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | defaultPruneVersionField()DeleteStreamreturnsfalseso that Optimistic Concurrency Constraints are 
 respected by default when using this stream to wrap aSearchStreamquery. | 
| Explanation | toExplanation(StreamFactory factory)Returns an explanation about the stream object | 
| protected void | uploadBatchToCollection(List<SolrInputDocument> documentBatch)Overrides implementation to extract the  "id"and"_version_"(if included) from each document and use that information to construct a "Delete By Id" request. | 
children, close, getCloudSolrClient, getCollectionName, getStreamSort, open, read, setStreamContext, toExpressiongetCost, getShards, getShards, getStreamNodeId, writeMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoExpression_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStrpublic DeleteStream(StreamExpression expression, StreamFactory factory) throws IOException
IOExceptionpublic Explanation toExplanation(StreamFactory factory) throws IOException
ExpressibletoExplanation in interface ExpressibletoExplanation in class UpdateStreamfactory - Stream factory for this, contains information about the function nameIOException - throw on any errorprotected boolean defaultPruneVersionField()
DeleteStream returns false so that Optimistic Concurrency Constraints are 
 respected by default when using this stream to wrap a SearchStream query.defaultPruneVersionField in class UpdateStreamprotected void uploadBatchToCollection(List<SolrInputDocument> documentBatch) throws IOException
"id" and "_version_" 
 (if included) from each document and use that information to construct a "Delete By Id" request.  
 Any other fields (ie: Tuple values) are ignored.uploadBatchToCollection in class UpdateStreamIOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.