Class DocumentDeleteSet


  • public class DocumentDeleteSet
    extends java.lang.Object
    This class is what's actually queued for delete threads. It represents an array of DocumentDescription objects, of an appropriate size to be a decent chunk. It will be processed by a single delete worker thread, in bulk.
    • Constructor Detail

      • DocumentDeleteSet

        public DocumentDeleteSet​(DeleteQueuedDocument[] documents,
                                 IJobDescription jobDescription)
        Constructor.
        Parameters:
        documents - is the arraylist representing the documents for this chunk.
        jobDescription - is the job description for all the documents.
    • Method Detail

      • getJobDescription

        public IJobDescription getJobDescription()
        Get the job description.
        Returns:
        the job description.
      • getCount

        public int getCount()
        Get the number of documents.
        Returns:
        the number.
      • getDocument

        public DeleteQueuedDocument getDocument​(int index)
        Get the nth document.
        Parameters:
        index - is the document number.
        Returns:
        the document.