Package com.attivio.sdk.ingest
Class BulkUpdate
- java.lang.Object
-
- com.attivio.sdk.esb.AbstractPlatformMessage
-
- com.attivio.sdk.ingest.AbstractIndexMessage
-
- com.attivio.sdk.ingest.BulkUpdate
-
- All Implemented Interfaces:
GroupedMessage,PlatformMessage,IndexMessage,java.io.Serializable,java.lang.Cloneable
public class BulkUpdate extends AbstractIndexMessage implements GroupedMessage
Message that applies a "template" document to multiple document ids.This message allows specifying a query and/or a list of document IDs to apply this update to.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.attivio.sdk.esb.PlatformMessage
DEFAULT_MAX_LOG_LENGTH, MESSAGE_DROPPED, MESSAGE_SEND_TIME_PROP, PROP_MAX_LOG_LENGTH
-
-
Constructor Summary
Constructors Constructor Description BulkUpdate()BulkUpdate(DocumentMode mode)BulkUpdate(java.util.UUID cid, WorkflowQueue workflow, DocumentMode mode)BulkUpdate(java.util.UUID cid, DocumentMode mode)BulkUpdate(java.util.UUID cid, java.lang.String workflow, DocumentMode mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDocumentId(java.lang.String id)Add a Document ID to apply this bulk update to.voidaddDocumentIds(java.lang.Iterable<java.lang.String> value)Add Document IDs to apply this bulk update to.voidaddDocumentIds(java.lang.String... value)Add Document IDs to apply this bulk update to.voidaddMessageToGroup(GroupedMessage msg)Addsmsgto the group.voidaddZone(java.lang.String zone)Add a zone that this bulk update should apply to.BulkUpdateclone()Clones the object and resets message ID to -1.booleanequals(java.lang.Object other)IngestDocumentgetDocument()Get the template document for this bulk update.java.util.Set<java.lang.String>getDocumentIds()Get the document IDs to apply this update to.DocumentModegetDocumentMode()Get theDocumentModefor applying this bulk update.GroupedMessageIdgetGroupedMessageId()QuerygetQuery()Get the query for selecting documents to update.WorkflowQueuegetQueryWorkflowQueue()Get the workflows to send the selection query through.java.lang.StringgetSchemaName()Get the name of the schema to use for query processing.java.util.Set<java.lang.String>getZones()Get the zones to apply this bulk update to.inthashCode()voidsetDocumentIds(java.lang.Iterable<java.lang.String> values)Set the document IDs to apply this update to.voidsetDocumentIds(java.lang.String... values)Set the document IDs to apply this update to.voidsetDocumentMode(DocumentMode mode)Set theDocumentModefor applying this bulk update.voidsetGroupedMessageId(GroupedMessageId groupedMessageId)Sets the GroupedMessageId for this message.voidsetQuery(Query query)Set the query for selecting documents to update.voidsetQuery(java.lang.String query)Set the query for selecting documents to update.voidsetQuery(java.lang.String query, java.lang.String language)Set the query for selecting documents to update.voidsetQueryWorkflowQueue(WorkflowQueue queue)Set the workflows to send the selection query through.voidsetQueryWorkflowQueue(java.lang.String... workflows)Set the workflows to send the selection query through.voidsetSchemaName(java.lang.String name)Set the name of the schema to use for query processing.voidsetZones(java.lang.Iterable<java.lang.String> value)Set the zones to apply this bulk update to.voidsetZones(java.lang.String... value)Set the zones to apply this bulk update to.-
Methods inherited from class com.attivio.sdk.esb.AbstractPlatformMessage
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, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.attivio.sdk.esb.PlatformMessage
addMessageHistory, addMessageHistory, getClientId, getEstimatedSize, getMessageHistory, getMessageId, getMetadata, getProperty, getWorkflowQueue, getWorkflowQueue, isRedelivered, removeProperty, setClientId, setMessageId, setProperty, setRedelivered, setWorkflowQueue, setWorkflowQueue, toMessageString
-
-
-
-
Constructor Detail
-
BulkUpdate
public BulkUpdate()
-
BulkUpdate
public BulkUpdate(DocumentMode mode)
-
BulkUpdate
public BulkUpdate(java.util.UUID cid, DocumentMode mode)
-
BulkUpdate
public BulkUpdate(java.util.UUID cid, java.lang.String workflow, DocumentMode mode)
-
BulkUpdate
public BulkUpdate(java.util.UUID cid, WorkflowQueue workflow, DocumentMode mode)
-
-
Method Detail
-
getZones
public java.util.Set<java.lang.String> getZones()
Get the zones to apply this bulk update to.If
nullthis bulk update will apply to all zones that are not system zones.
-
setZones
public void setZones(java.lang.String... value)
Set the zones to apply this bulk update to.
-
setZones
public void setZones(java.lang.Iterable<java.lang.String> value)
Set the zones to apply this bulk update to.
-
addZone
public void addZone(java.lang.String zone)
Add a zone that this bulk update should apply to.
-
getSchemaName
public java.lang.String getSchemaName()
Get the name of the schema to use for query processing.
-
setSchemaName
public void setSchemaName(java.lang.String name)
Set the name of the schema to use for query processing.
-
getDocument
public IngestDocument getDocument()
Get the template document for this bulk update.NOTE: the ID on the returned document is irrelevant and will be ignored.
-
getDocumentMode
public DocumentMode getDocumentMode()
Get theDocumentModefor applying this bulk update.
-
setDocumentMode
public void setDocumentMode(DocumentMode mode)
Set theDocumentModefor applying this bulk update.
-
getDocumentIds
public java.util.Set<java.lang.String> getDocumentIds()
Get the document IDs to apply this update to.
-
setDocumentIds
public void setDocumentIds(java.lang.String... values)
Set the document IDs to apply this update to.
-
setDocumentIds
public void setDocumentIds(java.lang.Iterable<java.lang.String> values)
Set the document IDs to apply this update to.
-
addDocumentId
public void addDocumentId(java.lang.String id)
Add a Document ID to apply this bulk update to.
-
addDocumentIds
public void addDocumentIds(java.lang.String... value)
Add Document IDs to apply this bulk update to.
-
addDocumentIds
public void addDocumentIds(java.lang.Iterable<java.lang.String> value)
Add Document IDs to apply this bulk update to.
-
getQuery
public Query getQuery()
Get the query for selecting documents to update.
-
setQuery
public void setQuery(Query query)
Set the query for selecting documents to update.
-
setQuery
public void setQuery(java.lang.String query)
Set the query for selecting documents to update.- See Also:
QueryString
-
setQuery
public void setQuery(java.lang.String query, java.lang.String language)Set the query for selecting documents to update.- See Also:
QueryString
-
getQueryWorkflowQueue
public WorkflowQueue getQueryWorkflowQueue()
Get the workflows to send the selection query through.
-
setQueryWorkflowQueue
public void setQueryWorkflowQueue(WorkflowQueue queue)
Set the workflows to send the selection query through.The query workflow is required if a query string is sent in as the query needs to be parsed into a
Query.
-
setQueryWorkflowQueue
public void setQueryWorkflowQueue(java.lang.String... workflows)
Set the workflows to send the selection query through.The query workflow is required if a query string is sent in as the query needs to be parsed into a
Query.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractPlatformMessage
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classAbstractPlatformMessage
-
clone
public BulkUpdate clone()
Clones the object and resets message ID to -1. Clones a message. The message ID is not cloned.- Specified by:
clonein interfaceIndexMessage- Specified by:
clonein interfacePlatformMessage- Overrides:
clonein classAbstractIndexMessage- Returns:
- the cloned index message
-
getGroupedMessageId
public GroupedMessageId getGroupedMessageId()
- Specified by:
getGroupedMessageIdin interfaceGroupedMessage- Returns:
- the GroupedMessageId for this message
-
setGroupedMessageId
public void setGroupedMessageId(GroupedMessageId groupedMessageId)
Description copied from interface:GroupedMessageSets the GroupedMessageId for this message. This method should normally be used only for the first message in the group with subsequent messages being added to the group viaGroupedMessage.addMessageToGroup(GroupedMessage).- Specified by:
setGroupedMessageIdin interfaceGroupedMessage
-
addMessageToGroup
public void addMessageToGroup(GroupedMessage msg)
Description copied from interface:GroupedMessageAddsmsgto the group. For ordering purposes,msgwill appear after this.- Specified by:
addMessageToGroupin interfaceGroupedMessage
-
-