public class BulkUpdate extends AbstractIndexMessage implements GroupedMessage
This message allows specifying a query and/or a list of document IDs to apply this update to.
DEFAULT_MAX_LOG_LENGTH, MESSAGE_DROPPED, MESSAGE_SEND_TIME_PROP, PROP_MAX_LOG_LENGTH| Constructor and Description |
|---|
BulkUpdate() |
BulkUpdate(DocumentMode mode) |
BulkUpdate(UUID cid,
DocumentMode mode) |
BulkUpdate(UUID cid,
String workflow,
DocumentMode mode) |
BulkUpdate(UUID cid,
WorkflowQueue workflow,
DocumentMode mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDocumentId(String id)
Add a Document ID to apply this bulk update to.
|
void |
addDocumentIds(Iterable<String> value)
Add Document IDs to apply this bulk update to.
|
void |
addDocumentIds(String... value)
Add Document IDs to apply this bulk update to.
|
void |
addMessageToGroup(GroupedMessage msg)
Adds
msg to the group. |
void |
addZone(String zone)
Add a zone that this bulk update should apply to.
|
BulkUpdate |
clone()
Clones the object and resets message ID to -1.
|
boolean |
equals(Object other) |
IngestDocument |
getDocument()
Get the template document for this bulk update.
|
Set<String> |
getDocumentIds()
Get the document IDs to apply this update to.
|
DocumentMode |
getDocumentMode()
Get the
DocumentMode for applying this bulk update. |
GroupedMessageId |
getGroupedMessageId() |
Query |
getQuery()
Get the query for selecting documents to update.
|
WorkflowQueue |
getQueryWorkflowQueue()
Get the workflows to send the selection query through.
|
String |
getSchemaName()
Get the name of the schema to use for query processing.
|
Set<String> |
getZones()
Get the zones to apply this bulk update to.
|
int |
hashCode() |
void |
setDocumentIds(Iterable<String> values)
Set the document IDs to apply this update to.
|
void |
setDocumentIds(String... values)
Set the document IDs to apply this update to.
|
void |
setDocumentMode(DocumentMode mode)
Set the
DocumentMode for applying this bulk update. |
void |
setGroupedMessageId(GroupedMessageId groupedMessageId)
Sets the GroupedMessageId for this message.
|
void |
setQuery(Query query)
Set the query for selecting documents to update.
|
void |
setQuery(String query)
Set the query for selecting documents to update.
|
void |
setQuery(String query,
String language)
Set the query for selecting documents to update.
|
void |
setQueryWorkflowQueue(String... workflows)
Set the workflows to send the selection query through.
|
void |
setQueryWorkflowQueue(WorkflowQueue queue)
Set the workflows to send the selection query through.
|
void |
setSchemaName(String name)
Set the name of the schema to use for query processing.
|
void |
setZones(Iterable<String> value)
Set the zones to apply this bulk update to.
|
void |
setZones(String... value)
Set the zones to apply this bulk update to.
|
addMessageHistory, addMessageHistory, getClientId, getEstimatedSize, getMessageHistory, getMessageId, getMetadata, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getWorkflowQueue, getWorkflowQueue, hasProperty, isRedelivered, removeProperty, removeWorkflowQueue, setClientId, setMessageId, setProperty, setRedelivered, setWorkflowQueue, setWorkflowQueue, toMessageString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitaddMessageHistory, addMessageHistory, getClientId, getEstimatedSize, getMessageHistory, getMessageId, getMetadata, getProperty, getWorkflowQueue, getWorkflowQueue, isRedelivered, removeProperty, setClientId, setMessageId, setProperty, setRedelivered, setWorkflowQueue, setWorkflowQueue, toMessageStringpublic BulkUpdate()
public BulkUpdate(DocumentMode mode)
public BulkUpdate(UUID cid, DocumentMode mode)
public BulkUpdate(UUID cid, String workflow, DocumentMode mode)
public BulkUpdate(UUID cid, WorkflowQueue workflow, DocumentMode mode)
public Set<String> getZones()
If null this bulk update will apply to all zones that are not system zones.
public void setZones(String... value)
public void addZone(String zone)
public String getSchemaName()
public void setSchemaName(String name)
public IngestDocument getDocument()
NOTE: the ID on the returned document is irrelevant and will be ignored.
public DocumentMode getDocumentMode()
DocumentMode for applying this bulk update.public void setDocumentMode(DocumentMode mode)
DocumentMode for applying this bulk update.public void setDocumentIds(String... values)
public void setDocumentIds(Iterable<String> values)
public void addDocumentId(String id)
public void addDocumentIds(String... value)
public void addDocumentIds(Iterable<String> value)
public Query getQuery()
public void setQuery(Query query)
public void setQuery(String query)
QueryStringpublic void setQuery(String query, String language)
QueryStringpublic WorkflowQueue getQueryWorkflowQueue()
public void setQueryWorkflowQueue(WorkflowQueue queue)
The query workflow is required if a query string is sent in as the
query needs to be parsed into a Query.
public void setQueryWorkflowQueue(String... workflows)
The query workflow is required if a query string is sent in as the
query needs to be parsed into a Query.
public int hashCode()
hashCode in class AbstractPlatformMessagepublic boolean equals(Object other)
equals in class AbstractPlatformMessagepublic BulkUpdate clone()
clone in interface PlatformMessageclone in interface IndexMessageclone in class AbstractIndexMessagepublic GroupedMessageId getGroupedMessageId()
getGroupedMessageId in interface GroupedMessagepublic void setGroupedMessageId(GroupedMessageId groupedMessageId)
GroupedMessageGroupedMessage.addMessageToGroup(GroupedMessage).setGroupedMessageId in interface GroupedMessagepublic void addMessageToGroup(GroupedMessage msg)
GroupedMessagemsg to the group. For ordering purposes, msg will appear after this.addMessageToGroup in interface GroupedMessageCopyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.