|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.crawler.system.QueuedDocument
public class QueuedDocument
This class represents a document that will be placed on the document queue, and will be processed by a worker thread. The reason that DocumentDescription by itself is not used has to do with the fact that a good deal more information about the document must be obtained in order to find the last version ingested (which must be done in bulk, for performance reasons). Since we are finding everything anyway, it makes sense to put what we have in a structure so that the worker threads don't need to repeat what the stuffer thread did.
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
protected java.lang.String[] |
binNames
The binnames for the document, according to the connector |
protected DocumentDescription |
documentDescription
The document description. |
protected DocumentIngestStatus |
lastIngestedStatus
The last ingested status, null meaning "never ingested". |
protected boolean |
wasProcessed
This flag indicates whether the document has been processed or not. |
| Constructor Summary | |
|---|---|
QueuedDocument(DocumentDescription documentDescription,
DocumentIngestStatus lastIngestedStatus,
java.lang.String[] binNames)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getBinNames()
Get the bin names for this document |
DocumentDescription |
getDocumentDescription()
Get the document description. |
DocumentIngestStatus |
getLastIngestedStatus()
Get the last ingested status. |
void |
setProcessed()
Note that the document was processed in some way. |
boolean |
wasProcessed()
Check if document has been processed yet. |
| 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 DocumentDescription documentDescription
protected DocumentIngestStatus lastIngestedStatus
protected java.lang.String[] binNames
protected boolean wasProcessed
| Constructor Detail |
|---|
public QueuedDocument(DocumentDescription documentDescription,
DocumentIngestStatus lastIngestedStatus,
java.lang.String[] binNames)
documentDescription - is the document description.lastIngestedStatus - is the document's last ingested status.binNames - are the bins associated with the document.| Method Detail |
|---|
public DocumentDescription getDocumentDescription()
public DocumentIngestStatus getLastIngestedStatus()
public java.lang.String[] getBinNames()
public boolean wasProcessed()
public void setProcessed()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||