Class BulkUpdateDocuments
java.lang.Object
io.fluxcapacitor.common.api.Request
io.fluxcapacitor.common.api.Command
io.fluxcapacitor.common.api.search.BulkUpdateDocuments
- All Implemented Interfaces:
JsonType
Command to perform a batch update of documents in the search/document store.
This operation accepts a collection of DocumentUpdate
items, which may be of the types:
IndexDocument
– index or replace a documentIndexDocumentIfNotExists
– index only if the document does not yet existDeleteDocument
– remove a document from a collection
The entire batch is processed together, and depending on the Guarantee
, may ensure delivery or persistence.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Metric representation for monitoring or observability. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.fluxcapacitor.common.api.Command
getGuarantee
-
Constructor Details
-
BulkUpdateDocuments
public BulkUpdateDocuments()
-
-
Method Details
-
getSize
public int getSize()- Returns:
- the number of document updates in this batch.
-
toString
-
toMetric
Metric representation of the bulk update, for logging or monitoring.- Returns:
- a safe and compact object suitable for serialization to the metrics log
-
routingKey
Uses the ID of the first update as the routing key for this command.- Overrides:
routingKey
in classCommand
- Returns:
- a routing key string, or
null
if not specified
-