public class StandardProvenanceEventRecord extends java.lang.Object implements ProvenanceEventRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
StandardProvenanceEventRecord.Builder |
REMOTE_INPUT_PORT_TYPE, REMOTE_OUTPUT_PORT_TYPE| Modifier and Type | Method and Description |
|---|---|
static StandardProvenanceEventRecord |
copy(StandardProvenanceEventRecord other) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlternateIdentifierUri() |
java.lang.String |
getAttribute(java.lang.String attributeName)
Returns the attribute with the given name
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes() |
java.lang.String |
getBestEventIdentifier()
Returns a unique identifier for the record.
|
java.util.List<java.lang.String> |
getChildUuids() |
java.lang.String |
getComponentId() |
java.lang.String |
getComponentType() |
java.lang.String |
getContentClaimContainer() |
java.lang.String |
getContentClaimIdentifier() |
java.lang.Long |
getContentClaimOffset() |
java.lang.String |
getContentClaimSection() |
java.lang.String |
getDetails() |
long |
getEventDuration() |
long |
getEventId() |
long |
getEventTime() |
ProvenanceEventType |
getEventType() |
long |
getFileSize() |
long |
getFlowFileEntryDate() |
java.lang.String |
getFlowFileUuid() |
long |
getLineageStartDate() |
java.util.List<java.lang.String> |
getParentUuids() |
java.util.Map<java.lang.String,java.lang.String> |
getPreviousAttributes() |
java.lang.String |
getPreviousContentClaimContainer() |
java.lang.String |
getPreviousContentClaimIdentifier() |
java.lang.Long |
getPreviousContentClaimOffset() |
java.lang.String |
getPreviousContentClaimSection() |
java.lang.Long |
getPreviousFileSize() |
java.lang.String |
getRelationship() |
java.lang.String |
getSourceQueueIdentifier() |
java.lang.String |
getSourceSystemFlowFileIdentifier()
Since the receiving system will usually refer to the data using a
different identifier than the source system, this information is used to
correlate the receive system's FlowFile with the sending system's data
|
long |
getStorageByteOffset() |
java.lang.String |
getStorageFilename() |
java.lang.String |
getTransitUri() |
java.util.Map<java.lang.String,java.lang.String> |
getUpdatedAttributes() |
int |
hashCode() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisRemotePortTypepublic static StandardProvenanceEventRecord copy(StandardProvenanceEventRecord other)
public java.lang.String getStorageFilename()
public long getStorageByteOffset()
public long getEventId()
getEventId in interface ProvenanceEventRecordProvenanceEventRepositorypublic long getEventTime()
getEventTime in interface ProvenanceEventRecordpublic long getLineageStartDate()
getLineageStartDate in interface ProvenanceEventRecordpublic long getFileSize()
getFileSize in interface ProvenanceEventRecordpublic java.lang.Long getPreviousFileSize()
getPreviousFileSize in interface ProvenanceEventRecordnullpublic ProvenanceEventType getEventType()
getEventType in interface ProvenanceEventRecordpublic java.util.Map<java.lang.String,java.lang.String> getAttributes()
getAttributes in interface ProvenanceEventRecordpublic java.lang.String getAttribute(java.lang.String attributeName)
ProvenanceEventRecordgetAttribute in interface ProvenanceEventRecordattributeName - the name of the attribute to getnull if no attribute exists with the given namepublic java.lang.String getComponentId()
getComponentId in interface ProvenanceEventRecordpublic java.lang.String getComponentType()
getComponentType in interface ProvenanceEventRecordpublic java.lang.String getTransitUri()
getTransitUri in interface ProvenanceEventRecordpublic java.lang.String getSourceSystemFlowFileIdentifier()
ProvenanceEventRecordgetSourceSystemFlowFileIdentifier in interface ProvenanceEventRecordProvenanceEventType is of type
RECEIVEpublic java.lang.String getFlowFileUuid()
getFlowFileUuid in interface ProvenanceEventRecordpublic java.util.List<java.lang.String> getParentUuids()
getParentUuids in interface ProvenanceEventRecordProvenanceEventType is of type
SPAWNpublic java.util.List<java.lang.String> getChildUuids()
getChildUuids in interface ProvenanceEventRecordProvenanceEventType is of type
SPAWNpublic java.lang.String getAlternateIdentifierUri()
getAlternateIdentifierUri in interface ProvenanceEventRecordProvenanceEventType is of type
ProvenanceEventType.ADDINFOpublic long getEventDuration()
getEventDuration in interface ProvenanceEventRecordpublic java.lang.String getDetails()
getDetails in interface ProvenanceEventRecordnullpublic java.lang.String getRelationship()
getRelationship in interface ProvenanceEventRecordProvenanceEventType.ROUTE. The relationship is applicable
only to this typepublic long getFlowFileEntryDate()
getFlowFileEntryDate in interface ProvenanceEventRecordpublic java.lang.String getContentClaimSection()
getContentClaimSection in interface ProvenanceEventRecordnullpublic java.lang.String getContentClaimContainer()
getContentClaimContainer in interface ProvenanceEventRecordnullpublic java.lang.String getContentClaimIdentifier()
getContentClaimIdentifier in interface ProvenanceEventRecordnullpublic java.lang.Long getContentClaimOffset()
getContentClaimOffset in interface ProvenanceEventRecordnullpublic java.lang.String getSourceQueueIdentifier()
getSourceQueueIdentifier in interface ProvenanceEventRecordProvenanceEventType.CREATE, ProvenanceEventType.RECEIVE,
ProvenanceEventType.FORK, ProvenanceEventType.JOIN, or
ProvenanceEventType.CLONE), or if the queue identifier is
unknown, then this method will return nullpublic java.util.Map<java.lang.String,java.lang.String> getPreviousAttributes()
getPreviousAttributes in interface ProvenanceEventRecordpublic java.lang.String getPreviousContentClaimContainer()
getPreviousContentClaimContainer in interface ProvenanceEventRecordnullpublic java.lang.String getPreviousContentClaimIdentifier()
getPreviousContentClaimIdentifier in interface ProvenanceEventRecordnullpublic java.lang.Long getPreviousContentClaimOffset()
getPreviousContentClaimOffset in interface ProvenanceEventRecordnullpublic java.lang.String getPreviousContentClaimSection()
getPreviousContentClaimSection in interface ProvenanceEventRecordnullpublic java.util.Map<java.lang.String,java.lang.String> getUpdatedAttributes()
getUpdatedAttributes in interface ProvenanceEventRecordpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getBestEventIdentifier()
ProvenanceEventRecord.getEventId() but if it has not been persisted to the
repository, this is -1, so it constructs a String of the format
<event type>_on_<flowfile UUID>_by_<component UUID>_at_<event time>.getBestEventIdentifier in interface ProvenanceEventRecord