public final class DeleteStream extends UpdateStream implements Expressible
TupleStream.IgnoreException
MapWriter.EntryWriter
BATCH_INDEXED_FIELD_NAME
Constructor and Description |
---|
DeleteStream(StreamExpression expression,
StreamFactory factory) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
defaultPruneVersionField()
DeleteStream returns false so that Optimistic Concurrency Constraints are
respected by default when using this stream to wrap a SearchStream query. |
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, toExpression
getCost, getShards, getShards, getStreamNodeId, writeMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toExpression
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
public DeleteStream(StreamExpression expression, StreamFactory factory) throws IOException
IOException
public Explanation toExplanation(StreamFactory factory) throws IOException
Expressible
toExplanation
in interface Expressible
toExplanation
in class UpdateStream
factory
- 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 UpdateStream
protected 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 UpdateStream
IOException
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.