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, wait
isRemotePortType
public static StandardProvenanceEventRecord copy(StandardProvenanceEventRecord other)
public java.lang.String getStorageFilename()
public long getStorageByteOffset()
public long getEventId()
getEventId
in interface ProvenanceEventRecord
ProvenanceEventRepository
public long getEventTime()
getEventTime
in interface ProvenanceEventRecord
public long getLineageStartDate()
getLineageStartDate
in interface ProvenanceEventRecord
public long getFileSize()
getFileSize
in interface ProvenanceEventRecord
public java.lang.Long getPreviousFileSize()
getPreviousFileSize
in interface ProvenanceEventRecord
null
public ProvenanceEventType getEventType()
getEventType
in interface ProvenanceEventRecord
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
getAttributes
in interface ProvenanceEventRecord
public java.lang.String getAttribute(java.lang.String attributeName)
ProvenanceEventRecord
getAttribute
in interface ProvenanceEventRecord
attributeName
- the name of the attribute to getnull
if no attribute exists with the given namepublic java.lang.String getComponentId()
getComponentId
in interface ProvenanceEventRecord
public java.lang.String getComponentType()
getComponentType
in interface ProvenanceEventRecord
public java.lang.String getTransitUri()
getTransitUri
in interface ProvenanceEventRecord
public java.lang.String getSourceSystemFlowFileIdentifier()
ProvenanceEventRecord
getSourceSystemFlowFileIdentifier
in interface ProvenanceEventRecord
ProvenanceEventType
is of type
RECEIVE
public java.lang.String getFlowFileUuid()
getFlowFileUuid
in interface ProvenanceEventRecord
public java.util.List<java.lang.String> getParentUuids()
getParentUuids
in interface ProvenanceEventRecord
ProvenanceEventType
is of type
SPAWN
public java.util.List<java.lang.String> getChildUuids()
getChildUuids
in interface ProvenanceEventRecord
ProvenanceEventType
is of type
SPAWN
public java.lang.String getAlternateIdentifierUri()
getAlternateIdentifierUri
in interface ProvenanceEventRecord
ProvenanceEventType
is of type
ProvenanceEventType.ADDINFO
public long getEventDuration()
getEventDuration
in interface ProvenanceEventRecord
public java.lang.String getDetails()
getDetails
in interface ProvenanceEventRecord
null
public java.lang.String getRelationship()
getRelationship
in interface ProvenanceEventRecord
ProvenanceEventType.ROUTE
. The relationship is applicable
only to this typepublic long getFlowFileEntryDate()
getFlowFileEntryDate
in interface ProvenanceEventRecord
public java.lang.String getContentClaimSection()
getContentClaimSection
in interface ProvenanceEventRecord
null
public java.lang.String getContentClaimContainer()
getContentClaimContainer
in interface ProvenanceEventRecord
null
public java.lang.String getContentClaimIdentifier()
getContentClaimIdentifier
in interface ProvenanceEventRecord
null
public java.lang.Long getContentClaimOffset()
getContentClaimOffset
in interface ProvenanceEventRecord
null
public java.lang.String getSourceQueueIdentifier()
getSourceQueueIdentifier
in interface ProvenanceEventRecord
ProvenanceEventType.CREATE
, ProvenanceEventType.RECEIVE
,
ProvenanceEventType.FORK
, ProvenanceEventType.JOIN
, or
ProvenanceEventType.CLONE
), or if the queue identifier is
unknown, then this method will return null
public java.util.Map<java.lang.String,java.lang.String> getPreviousAttributes()
getPreviousAttributes
in interface ProvenanceEventRecord
public java.lang.String getPreviousContentClaimContainer()
getPreviousContentClaimContainer
in interface ProvenanceEventRecord
null
public java.lang.String getPreviousContentClaimIdentifier()
getPreviousContentClaimIdentifier
in interface ProvenanceEventRecord
null
public java.lang.Long getPreviousContentClaimOffset()
getPreviousContentClaimOffset
in interface ProvenanceEventRecord
null
public java.lang.String getPreviousContentClaimSection()
getPreviousContentClaimSection
in interface ProvenanceEventRecord
null
public java.util.Map<java.lang.String,java.lang.String> getUpdatedAttributes()
getUpdatedAttributes
in interface ProvenanceEventRecord
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public 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