Class BulkUpdate

    • Constructor Detail

      • BulkUpdate

        public BulkUpdate()
      • BulkUpdate

        public BulkUpdate​(java.util.UUID cid,
                          DocumentMode mode)
      • BulkUpdate

        public BulkUpdate​(java.util.UUID cid,
                          java.lang.String workflow,
                          DocumentMode mode)
    • Method Detail

      • getZones

        public java.util.Set<java.lang.String> getZones()
        Get the zones to apply this bulk update to.

        If null this 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.

      • setDocumentMode

        public void setDocumentMode​(DocumentMode mode)
        Set the DocumentMode for 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.