Interface DocumentOutputClient

    • Method Detail

      • delete

        void delete​(java.lang.String... ids)
             throws AttivioException
        Delete a series of documents from AIE by document id.

        If batching is enabled, then these delete messages will be batched along with any fed documents. If these deletes are meant to apply to uncommitted documents previously fed with this ContentFeeder, then those documents must be committed to the index before this delete is called. When ordered commits is enabled, this entails calling:

           contentFeeder.commit();
           contentFeeder.waitForCompletion();
           contentFeeder.delete("id1",...);
         
        When ordered commits is disabled, it entails calling:
           contentFeeder.waitForCompletion();
           contentFeeder.commit();
           contentFeeder.waitForCompletion();
           contentFeeder.delete("id1",...);
         
        Parameters:
        ids - The document IDs of the documents to delete.
        Throws:
        AttivioException - if sending of deletes fails.
      • deleteByQuery

        void deleteByQuery​(java.lang.String queryWorkflow,
                           Query query)
                    throws AttivioException
        Delete all documents that match the Query.

        If documents are currently batched up, then those documents will be sent along with this delete.

        Use bulkUpdate(BulkUpdate) to feed more complicated delete queries. If these deletes are meant to apply to uncommitted documents previously fed with this ContentFeeder, then those documents must be committed to the index before this delete is called. When ordered commits is enabled, this entails calling:

         contentFeeder.commit();
         contentFeeder.waitForCompletion();
         contentFeeder.delete("id1",...);
         
        When ordered commits is disabled, it entails calling:
         contentFeeder.waitForCompletion();
         contentFeeder.commit();
         contentFeeder.waitForCompletion();
         contentFeeder.delete(...);
         
        Parameters:
        queryWorkflow - the query workflow or null if none needed
        query - query to delete by
        Throws:
        AttivioException
      • isMessageGroupInProgress

        boolean isMessageGroupInProgress()
        Returns:
        true if a message group has been started and not yet ended.
      • startMessageGroup

        void startMessageGroup()
                        throws AttivioException
        Starts a group of messages that will be processed together. All documents and deletes in the group will be processed together and in the order created. NOTE: failure to end a started message group will cause the last message of the group in progress to not be sent.
        Throws:
        AttivioException