|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.crawler.system.QueuedDocumentSet
public class QueuedDocumentSet
This 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 | |
|---|---|
static java.lang.String |
_rcsid
|
protected IRepositoryConnection |
connection
The connection description that applies to this document set. |
protected QueuedDocument[] |
documents
This is the array of QueuedDocument objects. |
protected IJobDescription |
jobDescription
The job description that applies to this document set. |
| Constructor Summary | |
|---|---|
QueuedDocumentSet(java.util.ArrayList documents,
IJobDescription jobDescription,
IRepositoryConnection connection)
Constructor. |
|
| Method Summary | |
|---|---|
void |
beginProcessing(QueueTracker queueTracker)
Log that we are beginning the processing of a set of documents |
double |
calculateAssignmentRating(QueueTracker overlapCalculator)
Calculate a rating for this set. |
void |
endProcessing(QueueTracker queueTracker)
Log that we are done processing a set of documents |
IRepositoryConnection |
getConnection()
Get the connection. |
int |
getCount()
Get the number of documents. |
QueuedDocument |
getDocument(int index)
Get the nth document. |
IJobDescription |
getJobDescription()
Get the job description. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String _rcsid
protected QueuedDocument[] documents
protected IJobDescription jobDescription
protected IRepositoryConnection connection
| Constructor Detail |
|---|
public QueuedDocumentSet(java.util.ArrayList documents,
IJobDescription jobDescription,
IRepositoryConnection connection)
documents - is the arraylist representing the documents accumulated for a single connection.| Method Detail |
|---|
public int getCount()
public QueuedDocument getDocument(int index)
index - is the document number.
public void beginProcessing(QueueTracker queueTracker)
public void endProcessing(QueueTracker queueTracker)
public double calculateAssignmentRating(QueueTracker overlapCalculator)
overlapCalculator - is the calculator object.
public IJobDescription getJobDescription()
public IRepositoryConnection getConnection()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||