Uses of Interface
org.apache.nifi.flowfile.FlowFile
Packages that use FlowFile
Package
Description
-
Uses of FlowFile in org.apache.nifi.components
Methods in org.apache.nifi.components with parameters of type FlowFileModifier and TypeMethodDescriptionPropertyValue.evaluateAttributeExpressions
(FlowFile flowFile) Replaces values in the Property Value using the NiFi Expression Language; a PropertyValue with the new value is then returned, supporting call chaining.PropertyValue.evaluateAttributeExpressions
(FlowFile flowFile, Map<String, String> additionalAttributes) Replaces values in the Property Value using the NiFi Expression Language; a PropertyValue with the new value is then returned, supporting call chaining.PropertyValue.evaluateAttributeExpressions
(FlowFile flowFile, Map<String, String> additionalAttributes, AttributeValueDecorator decorator) Replaces values in the Property Value using the NiFi Expression Language; a PropertyValue with the new value is then returned, supporting call chaining.PropertyValue.evaluateAttributeExpressions
(FlowFile flowFile, Map<String, String> additionalAttributes, AttributeValueDecorator decorator, Map<String, String> stateValues) Replaces values in the Property Value using the NiFi Expression Language; a PropertyValue with the new value is then returned, supporting call chaining.PropertyValue.evaluateAttributeExpressions
(FlowFile flowFile, AttributeValueDecorator decorator) Replaces values in the Property Value using the NiFi Expression Language. -
Uses of FlowFile in org.apache.nifi.expression
Methods in org.apache.nifi.expression with parameters of type FlowFileModifier and TypeMethodDescriptionEvaluates the expression providing access to additional variables including the flow file properties such as file size, identifier, etc..AttributeExpression.evaluate
(FlowFile flowFile, AttributeValueDecorator decorator) Evaluates the expression providing access to additional variables including the flow file properties such as file size, identifier, etc.. -
Uses of FlowFile in org.apache.nifi.processor
Methods in org.apache.nifi.processor that return FlowFileModifier and TypeMethodDescriptionProcessSession.append
(FlowFile source, OutputStreamCallback writer) Executes the given callback against the content corresponding to the given FlowFile, such that any data written to the OutputStream of the content will be appended to the end of FlowFile.Creates a new FlowFile that is a clone of the given FlowFile as of the time this is called, both in content and attributes.Creates a new FlowFile whose parent is the given FlowFile.ProcessSession.create()
Creates a new FlowFile in the repository with no content and without any linkage to a parent FlowFile.ProcessSession.create
(Collection<FlowFile> parents) Creates a new FlowFile in the repository with no content but with a parent linkage to the FlowFiles specified by the parents Collection.Creates a new FlowFile in the repository with no content but with a parent linkage toparent
.ProcessSession.get()
ProcessSession.importFrom
(InputStream source, FlowFile destination) Writes to the given FlowFile all content from the given content path.ProcessSession.importFrom
(Path source, boolean keepSourceFile, FlowFile destination) Writes to the given FlowFile all content from the given content path.ProcessSession.merge
(Collection<FlowFile> sources, FlowFile destination) Combines the content of all given source FlowFiles into a single given destination FlowFile.ProcessSession.merge
(Collection<FlowFile> sources, FlowFile destination, byte[] header, byte[] footer, byte[] demarcator) Combines the content of all given source FlowFiles into a single given destination FlowFile.Sets a penalty for the given FlowFile which will make it unavailable to be operated on any further during the penalty period.ProcessSession.putAllAttributes
(FlowFile flowFile, Map<String, String> attributes) Updates the given FlowFiles attributes with the given key/value pairs.ProcessSession.putAttribute
(FlowFile flowFile, String key, String value) Updates the given FlowFiles attributes with the given key/value pair.ProcessSession.removeAllAttributes
(FlowFile flowFile, Pattern keyPattern) Remove all attributes from the given FlowFile that have keys which match the given pattern.ProcessSession.removeAllAttributes
(FlowFile flowFile, Set<String> keys) Removes the attributes with the given keys from the given FlowFile.ProcessSession.removeAttribute
(FlowFile flowFile, String key) Removes the given FlowFile attribute with the given key.ProcessSession.write
(FlowFile source, OutputStreamCallback writer) Executes the given callback against the content corresponding to the given FlowFile.ProcessSession.write
(FlowFile source, StreamCallback writer) Executes the given callback against the content corresponding to the given flow file.Methods in org.apache.nifi.processor that return types with arguments of type FlowFileModifier and TypeMethodDescriptionProcessSession.get
(int maxResults) Returns up tomaxResults
FlowFiles from the work queue.ProcessSession.get
(FlowFileFilter filter) Returns all FlowFiles from all of the incoming queues for which the givenFlowFileFilter
indicates should be accepted.Methods in org.apache.nifi.processor with parameters of type FlowFileModifier and TypeMethodDescriptionProcessSession.append
(FlowFile source, OutputStreamCallback writer) Executes the given callback against the content corresponding to the given FlowFile, such that any data written to the OutputStream of the content will be appended to the end of FlowFile.Creates a new FlowFile that is a clone of the given FlowFile as of the time this is called, both in content and attributes.Creates a new FlowFile whose parent is the given FlowFile.Creates a new FlowFile in the repository with no content but with a parent linkage toparent
.void
ProcessSession.exportTo
(FlowFile flowFile, OutputStream destination) Writes the content of the given FlowFile to the given destination streamvoid
Writes the content of the given FlowFile to the given destination path.Indicates whether or not the given FlowFile should be selected and whether or not the Processor is interested in filtering additional FlowFilesProcessSession.importFrom
(InputStream source, FlowFile destination) Writes to the given FlowFile all content from the given content path.ProcessSession.importFrom
(Path source, boolean keepSourceFile, FlowFile destination) Writes to the given FlowFile all content from the given content path.ProcessSession.merge
(Collection<FlowFile> sources, FlowFile destination) Combines the content of all given source FlowFiles into a single given destination FlowFile.ProcessSession.merge
(Collection<FlowFile> sources, FlowFile destination, byte[] header, byte[] footer, byte[] demarcator) Combines the content of all given source FlowFiles into a single given destination FlowFile.Sets a penalty for the given FlowFile which will make it unavailable to be operated on any further during the penalty period.ProcessSession.putAllAttributes
(FlowFile flowFile, Map<String, String> attributes) Updates the given FlowFiles attributes with the given key/value pairs.ProcessSession.putAttribute
(FlowFile flowFile, String key, String value) Updates the given FlowFiles attributes with the given key/value pair.Provides an InputStream that can be used to read the contents of the given FlowFile.void
ProcessSession.read
(FlowFile source, InputStreamCallback reader) Executes the given callback against the contents corresponding to the given FlowFile.void
Ends the managed persistence for the given FlowFile.ProcessSession.removeAllAttributes
(FlowFile flowFile, Pattern keyPattern) Remove all attributes from the given FlowFile that have keys which match the given pattern.ProcessSession.removeAllAttributes
(FlowFile flowFile, Set<String> keys) Removes the attributes with the given keys from the given FlowFile.ProcessSession.removeAttribute
(FlowFile flowFile, String key) Removes the given FlowFile attribute with the given key.void
Transfers the given FlowFile back to the work queue from which it was pulled.void
ProcessSession.transfer
(FlowFile flowFile, Relationship relationship) Transfers the given FlowFile to the appropriate destination processor work queue(s) based on the given relationship.Provides an OutputStream that can be used to write to the contents of the given FlowFile.ProcessSession.write
(FlowFile source, OutputStreamCallback writer) Executes the given callback against the content corresponding to the given FlowFile.ProcessSession.write
(FlowFile source, StreamCallback writer) Executes the given callback against the content corresponding to the given flow file.Method parameters in org.apache.nifi.processor with type arguments of type FlowFileModifier and TypeMethodDescriptionProcessSession.create
(Collection<FlowFile> parents) Creates a new FlowFile in the repository with no content but with a parent linkage to the FlowFiles specified by the parents Collection.ProcessSession.merge
(Collection<FlowFile> sources, FlowFile destination) Combines the content of all given source FlowFiles into a single given destination FlowFile.ProcessSession.merge
(Collection<FlowFile> sources, FlowFile destination, byte[] header, byte[] footer, byte[] demarcator) Combines the content of all given source FlowFiles into a single given destination FlowFile.void
ProcessSession.migrate
(ProcessSession newOwner, Collection<FlowFile> flowFiles) Migrates ownership of the given FlowFiles fromthis
to the givennewOwner
.void
ProcessSession.remove
(Collection<FlowFile> flowFiles) Ends the managed persistence for the given FlowFiles.void
ProcessSession.transfer
(Collection<FlowFile> flowFiles) Transfers the given FlowFiles back to the work queues from which the FlowFiles were pulled.void
ProcessSession.transfer
(Collection<FlowFile> flowFiles, Relationship relationship) Transfers the given FlowFile to the appropriate destination processor work queue(s) based on the given relationship. -
Uses of FlowFile in org.apache.nifi.provenance
Methods in org.apache.nifi.provenance with parameters of type FlowFileModifier and TypeMethodDescriptionProvenanceEventBuilder.addChildFlowFile
(FlowFile child) Adds the given FlowFile as a child for Events of typeProvenanceEventType.FORK
,ProvenanceEventType.JOIN
, andProvenanceEventType.CLONE
This is valid only forProvenanceEventType.FORK
,ProvenanceEventType.JOIN
, andProvenanceEventType.CLONE
events and will be ignored for any other event types.ProvenanceEventBuilder.addParentFlowFile
(FlowFile parent) Adds the given FlowFile as a parent for Events of type,ProvenanceEventType.FORK
,ProvenanceEventType.JOIN
, andProvenanceEventType.CLONE
This is valid only forProvenanceEventType.FORK
,ProvenanceEventType.JOIN
, andProvenanceEventType.CLONE
events and will be ignored for any other event types.void
ProvenanceReporter.associate
(FlowFile flowFile, String alternateIdentifierNamespace, String alternateIdentifier) Emits a Provenance Event of typeADDINFO
that provides a linkage between the given FlowFile and alternate identifier.void
Emits a Provenance Event of typeCLONE
that establishes that the given child is an exact replica of the parent.void
Emits a Provenance Event of typeCREATE
that indicates that the given FlowFile was created by NiFi from data that was not received from an external entity.void
Emits a Provenance Event of typeCREATE
that indicates that the given FlowFile was created by NiFi from data that was not received from an external entity.void
Emits a Provenance Event of typeFETCH
that indicates that the content of the given FlowFile was overwritten with the data received from an external source.void
Emits a Provenance Event of typeFETCH
that indicates that the content of the given FlowFile was overwritten with the data received from an external source.void
ProvenanceReporter.fetch
(FlowFile flowFile, String transitUri, String details, long transmissionMillis) Emits a Provenance Event of typeFETCH
that indicates that the content of the given FlowFile was overwritten with the data received from an external source.void
ProvenanceReporter.fork
(FlowFile parent, Collection<FlowFile> children) Emits a Provenance Event of typeFORK
that establishes that the given parent was split into multiple child FlowFiles.void
ProvenanceReporter.fork
(FlowFile parent, Collection<FlowFile> children, long forkDuration) Emits a Provenance Event of typeFORK
that establishes that the given parent was split into multiple child FlowFiles.void
ProvenanceReporter.fork
(FlowFile parent, Collection<FlowFile> children, String details) Emits a Provenance Event of typeFORK
that establishes that the given parent was split into multiple child FlowFiles.void
ProvenanceReporter.fork
(FlowFile parent, Collection<FlowFile> children, String details, long forkDuration) Emits a Provenance Event of typeFORK
that establishes that the given parent was split into multiple child FlowFiles.ProvenanceEventBuilder.fromFlowFile
(FlowFile flowFile) Populates the builder with as much information as it can from the given FlowFilevoid
ProvenanceReporter.invokeRemoteProcess
(FlowFile flowFile, String transitUri) Emits a Provenance Event of typeProvenanceEventType.REMOTE_INVOCATION
that indicates a remote invocation is requested to an external endpoint using the given FlowFile.void
ProvenanceReporter.invokeRemoteProcess
(FlowFile flowFile, String transitUri, String details) Emits a Provenance Event of typeProvenanceEventType.REMOTE_INVOCATION
that indicates a remote invocation is requested to an external endpoint using the given FlowFile.void
ProvenanceReporter.join
(Collection<FlowFile> parents, FlowFile child) Emits a Provenance Event of typeJOIN
that establishes that the given parents were joined together to create a new child FlowFile.void
ProvenanceReporter.join
(Collection<FlowFile> parents, FlowFile child, long joinDuration) Emits a Provenance Event of typeJOIN
that establishes that the given parents were joined together to create a new child FlowFile.void
ProvenanceReporter.join
(Collection<FlowFile> parents, FlowFile child, String details) Emits a Provenance Event of typeJOIN
that establishes that the given parents were joined together to create a new child FlowFile.void
ProvenanceReporter.join
(Collection<FlowFile> parents, FlowFile child, String details, long joinDuration) Emits a Provenance Event of typeJOIN
that establishes that the given parents were joined together to create a new child FlowFile.void
ProvenanceReporter.modifyAttributes
(FlowFile flowFile) Emits a Provenance Event of typeATTRIBUTES_MODIFIED
that indicates that the Attributes of the given FlowFile were updated.void
ProvenanceReporter.modifyAttributes
(FlowFile flowFile, String details) Emits a Provenance Event of typeATTRIBUTES_MODIFIED
that indicates that the Attributes of the given FlowFile were updated.void
ProvenanceReporter.modifyContent
(FlowFile flowFile) Emits a Provenance Event of typeCONTENT_MODIFIED
that indicates that the content of the given FlowFile has been modified.void
ProvenanceReporter.modifyContent
(FlowFile flowFile, long processingMillis) Emits a Provenance Event of typeCONTENT_MODIFIED
that indicates that the content of the given FlowFile has been modified.void
ProvenanceReporter.modifyContent
(FlowFile flowFile, String details) Emits a Provenance Event of typeCONTENT_MODIFIED
that indicates that the content of the given FlowFile has been modified.void
ProvenanceReporter.modifyContent
(FlowFile flowFile, String details, long processingMillis) Emits a Provenance Event of typeCONTENT_MODIFIED
that indicates that the content of the given FlowFile has been modified.void
Emits a Provenance Event of typeRECEIVE
that indicates that the given FlowFile was created from data received from an external source.void
Emits a Provenance Event of typeRECEIVE
that indicates that the given FlowFile was created from data received from an external source.void
ProvenanceReporter.receive
(FlowFile flowFile, String transitUri, String sourceSystemFlowFileIdentifier) Emits a Provenance Event of typeRECEIVE
that indicates that the given FlowFile was created from data received from the specified URI and that the source system used the specified identifier (a URI with namespace) to refer to the data.void
ProvenanceReporter.receive
(FlowFile flowFile, String transitUri, String details, long transmissionMillis) Emits a Provenance Event of typeRECEIVE
that indicates that the given FlowFile was created from data received from an external source and provides additional details about the receipt of the FlowFile, such as a remote system's Distinguished Name.void
ProvenanceReporter.receive
(FlowFile flowFile, String transitUri, String sourceSystemFlowFileIdentifier, String details, long transmissionMillis) Emits a Provenance Event of typeRECEIVE
that indicates that the given FlowFile was created from data received from an external source and provides additional details about the receipt of the FlowFile, such as a remote system's Distinguished Name.ProvenanceEventBuilder.removeChildFlowFile
(FlowFile child) Removes the given FlowFile as a child for Events of typeProvenanceEventType.FORK
,ProvenanceEventType.JOIN
, andProvenanceEventType.CLONE
This is valid only forProvenanceEventType.FORK
,ProvenanceEventType.JOIN
, andProvenanceEventType.CLONE
events and will be ignored for any other event types.ProvenanceEventBuilder.removeParentFlowFile
(FlowFile parent) Removes the given FlowFile as a parent for Events of type,ProvenanceEventType.FORK
,ProvenanceEventType.JOIN
, andProvenanceEventType.CLONE
This is valid only forProvenanceEventType.FORK
,ProvenanceEventType.JOIN
, andProvenanceEventType.CLONE
events and will be ignored for any other event types.void
ProvenanceReporter.route
(FlowFile flowFile, Relationship relationship) Emits a Provenance Event of typeROUTE
that indicates that the given FlowFile was routed to the givenRelationship
.void
ProvenanceReporter.route
(FlowFile flowFile, Relationship relationship, long processingDuration) Emits a Provenance Event of typeROUTE
that indicates that the given FlowFile was routed to the givenRelationship
.void
ProvenanceReporter.route
(FlowFile flowFile, Relationship relationship, String details) Emits a Provenance Event of typeROUTE
that indicates that the given FlowFile was routed to the givenRelationship
.void
ProvenanceReporter.route
(FlowFile flowFile, Relationship relationship, String details, long processingDuration) Emits a Provenance Event of typeROUTE
that indicates that the given FlowFile was routed to the givenRelationship
.void
Emits a Provenance Event of typeSEND
that indicates that a copy of the given FlowFile was sent to an external destination.void
Emits a Provenance Event of typeSEND
that indicates that a copy of the given FlowFile was sent to an external destination.void
Emits a Provenance Event of typeSEND
that indicates that a copy of the given FlowFile was sent to an external destination.void
ProvenanceReporter.send
(FlowFile flowFile, String transitUri, long transmissionMillis, boolean force) Emits a Provenance Event of typeSEND
that indicates that a copy of the given FlowFile was sent to an external destination.void
Emits a Provenance Event of typeSEND
that indicates that a copy of the given FlowFile was sent to an external destination.void
Emits a Provenance Event of typeSEND
that indicates that a copy of the given FlowFile was sent to an external destination.void
ProvenanceReporter.send
(FlowFile flowFile, String transitUri, String details, long transmissionMillis) Emits a Provenance Event of typeSEND
that indicates that a copy of the given FlowFile was sent to an external destination.void
ProvenanceReporter.send
(FlowFile flowFile, String transitUri, String details, long transmissionMillis, boolean force) Emits a Provenance Event of typeSEND
that indicates that a copy of the given FlowFile was sent to an external destination.Method parameters in org.apache.nifi.provenance with type arguments of type FlowFileModifier and TypeMethodDescriptionvoid
ProvenanceReporter.fork
(FlowFile parent, Collection<FlowFile> children) Emits a Provenance Event of typeFORK
that establishes that the given parent was split into multiple child FlowFiles.void
ProvenanceReporter.fork
(FlowFile parent, Collection<FlowFile> children, long forkDuration) Emits a Provenance Event of typeFORK
that establishes that the given parent was split into multiple child FlowFiles.void
ProvenanceReporter.fork
(FlowFile parent, Collection<FlowFile> children, String details) Emits a Provenance Event of typeFORK
that establishes that the given parent was split into multiple child FlowFiles.void
ProvenanceReporter.fork
(FlowFile parent, Collection<FlowFile> children, String details, long forkDuration) Emits a Provenance Event of typeFORK
that establishes that the given parent was split into multiple child FlowFiles.void
ProvenanceReporter.join
(Collection<FlowFile> parents, FlowFile child) Emits a Provenance Event of typeJOIN
that establishes that the given parents were joined together to create a new child FlowFile.void
ProvenanceReporter.join
(Collection<FlowFile> parents, FlowFile child, long joinDuration) Emits a Provenance Event of typeJOIN
that establishes that the given parents were joined together to create a new child FlowFile.void
ProvenanceReporter.join
(Collection<FlowFile> parents, FlowFile child, String details) Emits a Provenance Event of typeJOIN
that establishes that the given parents were joined together to create a new child FlowFile.void
ProvenanceReporter.join
(Collection<FlowFile> parents, FlowFile child, String details, long joinDuration) Emits a Provenance Event of typeJOIN
that establishes that the given parents were joined together to create a new child FlowFile.