public class QueuedDocument
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 java.util.Map<java.lang.String,DocumentIngestStatusSet> |
lastIngestedStatus
The last ingested status, null meaning "never ingested".
|
protected boolean |
wasProcessed
This flag indicates whether the document has been processed or not.
|
Constructor and Description |
---|
QueuedDocument(DocumentDescription documentDescription,
java.util.Map<java.lang.String,DocumentIngestStatusSet> lastIngestedStatus,
java.lang.String[] binNames)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
anyLastIngestedRecords()
Return true if there are *any* last ingested records.
|
java.lang.String[] |
getBinNames()
Get the bin names for this document
|
DocumentDescription |
getDocumentDescription()
Get the document description.
|
DocumentIngestStatusSet |
getLastIngestedStatus(java.lang.String outputConnectionName)
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.
|
public static final java.lang.String _rcsid
protected final DocumentDescription documentDescription
protected final java.util.Map<java.lang.String,DocumentIngestStatusSet> lastIngestedStatus
protected final java.lang.String[] binNames
protected boolean wasProcessed
public QueuedDocument(DocumentDescription documentDescription, java.util.Map<java.lang.String,DocumentIngestStatusSet> 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.public DocumentDescription getDocumentDescription()
public DocumentIngestStatusSet getLastIngestedStatus(java.lang.String outputConnectionName)
outputConnectionName
- is the name of the output connection.public boolean anyLastIngestedRecords()
public java.lang.String[] getBinNames()
public boolean wasProcessed()
public void setProcessed()