Class DeleteStream

All Implemented Interfaces:
Closeable, Serializable, AutoCloseable, Expressible, org.apache.solr.common.MapSerializable, org.apache.solr.common.MapWriter, org.apache.solr.common.NavigableObject, org.noggit.JSONWriter.Writable

public final class DeleteStream extends UpdateStream implements Expressible
Uses tuples to identify the uniqueKey values of documents to be deleted
See Also:
  • Constructor Details

  • Method Details

    • toExplanation

      public Explanation toExplanation(StreamFactory factory) throws IOException
      Description copied from interface: Expressible
      Returns an explanation about the stream object
      Specified by:
      toExplanation in interface Expressible
      Overrides:
      toExplanation in class UpdateStream
      Parameters:
      factory - Stream factory for this, contains information about the function name
      Returns:
      Explanation about this stream object containing explanations of any child stream objects
      Throws:
      IOException - throw on any error
    • defaultPruneVersionField

      protected boolean defaultPruneVersionField()
      DeleteStream returns false so that Optimistic Concurrency Constraints are respected by default when using this stream to wrap a SearchStream query.
      Overrides:
      defaultPruneVersionField in class UpdateStream
    • uploadBatchToCollection

      protected void uploadBatchToCollection(List<org.apache.solr.common.SolrInputDocument> documentBatch) throws IOException
      Overrides implementation to extract the "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.
      Overrides:
      uploadBatchToCollection in class UpdateStream
      Throws:
      IOException