Class QueuedDocumentSet
- java.lang.Object
-
- org.apache.manifoldcf.crawler.system.QueuedDocumentSet
-
public class QueuedDocumentSet extends java.lang.ObjectThis class is what's actually queued. It is immutable and it represents an array or set of QueuedDocument objects, all of which will be processed by a single worker thread in bulk.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsidprotected IRepositoryConnectionconnectionThe connection description that applies to this document set.protected QueuedDocument[]documentsThis is the array of QueuedDocument objects.protected IJobDescriptionjobDescriptionThe job description that applies to this document set.
-
Constructor Summary
Constructors Constructor Description QueuedDocumentSet(java.util.List<QueuedDocument> documents, IJobDescription jobDescription, IRepositoryConnection connection)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginProcessing(QueueTracker queueTracker)Log that we are beginning the processing of a set of documentsdoublecalculateAssignmentRating(QueueTracker overlapCalculator)Calculate a rating for this set.voidendProcessing(QueueTracker queueTracker)Log that we are done processing a set of documentsIRepositoryConnectiongetConnection()Get the connection.intgetCount()Get the number of documents.QueuedDocumentgetDocument(int index)Get the nth document.IJobDescriptiongetJobDescription()Get the job description.
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
documents
protected final QueuedDocument[] documents
This is the array of QueuedDocument objects.
-
jobDescription
protected final IJobDescription jobDescription
The job description that applies to this document set. There is no guarantee that this won't change before we get around to processing the document; therefore any job-based metadata changes will also need to go through the queue mechanism.
-
connection
protected final IRepositoryConnection connection
The connection description that applies to this document set.
-
-
Constructor Detail
-
QueuedDocumentSet
public QueuedDocumentSet(java.util.List<QueuedDocument> documents, IJobDescription jobDescription, IRepositoryConnection connection)
Constructor.- Parameters:
documents- is the arraylist representing the documents accumulated for a single connection.
-
-
Method Detail
-
getCount
public int getCount()
Get the number of documents.- Returns:
- the number.
-
getDocument
public QueuedDocument getDocument(int index)
Get the nth document.- Parameters:
index- is the document number.- Returns:
- the document.
-
beginProcessing
public void beginProcessing(QueueTracker queueTracker)
Log that we are beginning the processing of a set of documents
-
endProcessing
public void endProcessing(QueueTracker queueTracker)
Log that we are done processing a set of documents
-
calculateAssignmentRating
public double calculateAssignmentRating(QueueTracker overlapCalculator)
Calculate a rating for this set.- Parameters:
overlapCalculator- is the calculator object.- Returns:
- the rating.
-
getJobDescription
public IJobDescription getJobDescription()
Get the job description.- Returns:
- the job description.
-
getConnection
public IRepositoryConnection getConnection()
Get the connection.- Returns:
- the connection.
-
-