Package org.apache.nifi.provenance
Class StandardProvenanceEventRecord.Builder
java.lang.Object
org.apache.nifi.provenance.StandardProvenanceEventRecord.Builder
- All Implemented Interfaces:
ProvenanceEventBuilder
- Enclosing class:
StandardProvenanceEventRecord
public static class StandardProvenanceEventRecord.Builder
extends Object
implements ProvenanceEventBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private String
private String
private String
private String
private Long
private String
private Long
private String
private long
private long
private Long
private long
private ProvenanceEventType
private long
private String
private String
private Long
private String
private Long
private String
private String
private String
private long
private String
private String
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddChildFlowFile
(String childId) addChildFlowFile
(FlowFile childFlowFile) addChildUuid
(String uuid) addParentFlowFile
(FlowFile parentFlowFile) addParentUuid
(String uuid) private void
build()
copy()
fromEvent
(ProvenanceEventRecord event) fromFlowFile
(FlowFile flowFile) removeChildFlowFile
(FlowFile childFlowFile) removeParentFlowFile
(FlowFile parentFlowFile) setAlternateIdentifierUri
(String alternateIdentifierUri) setChildUuids
(List<String> uuids) setComponentId
(String componentId) setComponentType
(String componentType) setCurrentContentClaim
(String container, String section, String identifier, Long offset, long size) setDetails
(String details) setEventDuration
(long millis) setEventId
(long eventId) setEventTime
(long eventTime) setEventType
(ProvenanceEventType eventType) setFlowFileEntryDate
(long entryDate) setFlowFileUUID
(String uuid) setLineageStartDate
(long startDate) setParentUuids
(List<String> uuids) setPreviousAttributes
(Map<String, String> previousAttributes) setPreviousContentClaim
(String container, String section, String identifier, Long offset, long size) setRelationship
(String relationship) setRelationship
(Relationship relationship) setSourceQueueIdentifier
(String identifier) setSourceSystemFlowFileIdentifier
(String sourceSystemFlowFileIdentifier) setStorageLocation
(String filename, long offset) setTransitUri
(String transitUri) setUpdatedAttributes
(Map<String, String> updatedAttributes)
-
Field Details
-
eventTime
private long eventTime -
entryDate
private long entryDate -
lineageStartDate
private long lineageStartDate -
eventType
-
componentId
-
componentType
-
sourceSystemFlowFileIdentifier
-
transitUri
-
uuid
-
parentUuids
-
childrenUuids
-
alternateIdentifierUri
-
details
-
relationship
-
storageByteOffset
private long storageByteOffset -
eventDuration
private long eventDuration -
storageFilename
-
eventId
-
contentClaimSection
-
contentClaimContainer
-
contentClaimIdentifier
-
contentClaimOffset
-
contentSize
-
previousClaimSection
-
previousClaimContainer
-
previousClaimIdentifier
-
previousClaimOffset
-
previousSize
-
sourceQueueIdentifier
-
previousAttributes
-
updatedAttributes
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fromEvent
- Specified by:
fromEvent
in interfaceProvenanceEventBuilder
-
setEventId
-
copy
- Specified by:
copy
in interfaceProvenanceEventBuilder
-
setFlowFileEntryDate
- Specified by:
setFlowFileEntryDate
in interfaceProvenanceEventBuilder
-
setAttributes
public StandardProvenanceEventRecord.Builder setAttributes(Map<String, String> previousAttributes, Map<String, String> updatedAttributes) - Specified by:
setAttributes
in interfaceProvenanceEventBuilder
-
setPreviousAttributes
public StandardProvenanceEventRecord.Builder setPreviousAttributes(Map<String, String> previousAttributes) -
setUpdatedAttributes
public StandardProvenanceEventRecord.Builder setUpdatedAttributes(Map<String, String> updatedAttributes) -
setFlowFileUUID
- Specified by:
setFlowFileUUID
in interfaceProvenanceEventBuilder
-
setStorageLocation
-
setEventTime
- Specified by:
setEventTime
in interfaceProvenanceEventBuilder
-
setEventDuration
- Specified by:
setEventDuration
in interfaceProvenanceEventBuilder
-
setLineageStartDate
- Specified by:
setLineageStartDate
in interfaceProvenanceEventBuilder
-
setEventType
- Specified by:
setEventType
in interfaceProvenanceEventBuilder
-
setComponentId
- Specified by:
setComponentId
in interfaceProvenanceEventBuilder
-
setComponentType
- Specified by:
setComponentType
in interfaceProvenanceEventBuilder
-
setSourceSystemFlowFileIdentifier
public StandardProvenanceEventRecord.Builder setSourceSystemFlowFileIdentifier(String sourceSystemFlowFileIdentifier) - Specified by:
setSourceSystemFlowFileIdentifier
in interfaceProvenanceEventBuilder
-
setTransitUri
- Specified by:
setTransitUri
in interfaceProvenanceEventBuilder
-
addParentFlowFile
- Specified by:
addParentFlowFile
in interfaceProvenanceEventBuilder
-
addParentUuid
-
removeParentFlowFile
- Specified by:
removeParentFlowFile
in interfaceProvenanceEventBuilder
-
addChildFlowFile
- Specified by:
addChildFlowFile
in interfaceProvenanceEventBuilder
-
addChildFlowFile
- Specified by:
addChildFlowFile
in interfaceProvenanceEventBuilder
-
addChildUuid
-
setChildUuids
-
setParentUuids
-
removeChildFlowFile
- Specified by:
removeChildFlowFile
in interfaceProvenanceEventBuilder
-
setAlternateIdentifierUri
public StandardProvenanceEventRecord.Builder setAlternateIdentifierUri(String alternateIdentifierUri) - Specified by:
setAlternateIdentifierUri
in interfaceProvenanceEventBuilder
-
setDetails
- Specified by:
setDetails
in interfaceProvenanceEventBuilder
-
setRelationship
- Specified by:
setRelationship
in interfaceProvenanceEventBuilder
-
setRelationship
-
fromFlowFile
- Specified by:
fromFlowFile
in interfaceProvenanceEventBuilder
-
setPreviousContentClaim
public StandardProvenanceEventRecord.Builder setPreviousContentClaim(String container, String section, String identifier, Long offset, long size) - Specified by:
setPreviousContentClaim
in interfaceProvenanceEventBuilder
-
setCurrentContentClaim
public StandardProvenanceEventRecord.Builder setCurrentContentClaim(String container, String section, String identifier, Long offset, long size) - Specified by:
setCurrentContentClaim
in interfaceProvenanceEventBuilder
-
setSourceQueueIdentifier
- Specified by:
setSourceQueueIdentifier
in interfaceProvenanceEventBuilder
-
assertSet
-
getEventType
-
getChildUuids
-
getParentUuids
-
build
- Specified by:
build
in interfaceProvenanceEventBuilder
-
getChildFlowFileIds
- Specified by:
getChildFlowFileIds
in interfaceProvenanceEventBuilder
-
getParentFlowFileIds
- Specified by:
getParentFlowFileIds
in interfaceProvenanceEventBuilder
-
getFlowFileId
- Specified by:
getFlowFileId
in interfaceProvenanceEventBuilder
-