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 tomaxResultsFlowFiles from the work queue.ProcessSession.get(FlowFileFilter filter) Returns all FlowFiles from all of the incoming queues for which the givenFlowFileFilterindicates 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.voidProcessSession.exportTo(FlowFile flowFile, OutputStream destination) Writes the content of the given FlowFile to the given destination streamvoidWrites 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.voidProcessSession.read(FlowFile source, InputStreamCallback reader) Executes the given callback against the contents corresponding to the given FlowFile.voidEnds 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.voidTransfers the given FlowFile back to the work queue from which it was pulled.voidProcessSession.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.voidProcessSession.migrate(ProcessSession newOwner, Collection<FlowFile> flowFiles) Migrates ownership of the given FlowFiles fromthisto the givennewOwner.voidProcessSession.remove(Collection<FlowFile> flowFiles) Ends the managed persistence for the given FlowFiles.voidProcessSession.transfer(Collection<FlowFile> flowFiles) Transfers the given FlowFiles back to the work queues from which the FlowFiles were pulled.voidProcessSession.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.CLONEThis is valid only forProvenanceEventType.FORK,ProvenanceEventType.JOIN, andProvenanceEventType.CLONEevents 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.CLONEThis is valid only forProvenanceEventType.FORK,ProvenanceEventType.JOIN, andProvenanceEventType.CLONEevents and will be ignored for any other event types.voidProvenanceReporter.associate(FlowFile flowFile, String alternateIdentifierNamespace, String alternateIdentifier) Emits a Provenance Event of typeADDINFOthat provides a linkage between the given FlowFile and alternate identifier.voidEmits a Provenance Event of typeCLONEthat establishes that the given child is an exact replica of the parent.voidEmits a Provenance Event of typeCREATEthat indicates that the given FlowFile was created by NiFi from data that was not received from an external entity.voidEmits a Provenance Event of typeCREATEthat indicates that the given FlowFile was created by NiFi from data that was not received from an external entity.voidEmits a Provenance Event of typeFETCHthat indicates that the content of the given FlowFile was overwritten with the data received from an external source.voidEmits a Provenance Event of typeFETCHthat indicates that the content of the given FlowFile was overwritten with the data received from an external source.voidProvenanceReporter.fetch(FlowFile flowFile, String transitUri, String details, long transmissionMillis) Emits a Provenance Event of typeFETCHthat indicates that the content of the given FlowFile was overwritten with the data received from an external source.voidProvenanceReporter.fork(FlowFile parent, Collection<FlowFile> children) Emits a Provenance Event of typeFORKthat establishes that the given parent was split into multiple child FlowFiles.voidProvenanceReporter.fork(FlowFile parent, Collection<FlowFile> children, long forkDuration) Emits a Provenance Event of typeFORKthat establishes that the given parent was split into multiple child FlowFiles.voidProvenanceReporter.fork(FlowFile parent, Collection<FlowFile> children, String details) Emits a Provenance Event of typeFORKthat establishes that the given parent was split into multiple child FlowFiles.voidProvenanceReporter.fork(FlowFile parent, Collection<FlowFile> children, String details, long forkDuration) Emits a Provenance Event of typeFORKthat 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 FlowFilevoidProvenanceReporter.invokeRemoteProcess(FlowFile flowFile, String transitUri) Emits a Provenance Event of typeProvenanceEventType.REMOTE_INVOCATIONthat indicates a remote invocation is requested to an external endpoint using the given FlowFile.voidProvenanceReporter.invokeRemoteProcess(FlowFile flowFile, String transitUri, String details) Emits a Provenance Event of typeProvenanceEventType.REMOTE_INVOCATIONthat indicates a remote invocation is requested to an external endpoint using the given FlowFile.voidProvenanceReporter.join(Collection<FlowFile> parents, FlowFile child) Emits a Provenance Event of typeJOINthat establishes that the given parents were joined together to create a new child FlowFile.voidProvenanceReporter.join(Collection<FlowFile> parents, FlowFile child, long joinDuration) Emits a Provenance Event of typeJOINthat establishes that the given parents were joined together to create a new child FlowFile.voidProvenanceReporter.join(Collection<FlowFile> parents, FlowFile child, String details) Emits a Provenance Event of typeJOINthat establishes that the given parents were joined together to create a new child FlowFile.voidProvenanceReporter.join(Collection<FlowFile> parents, FlowFile child, String details, long joinDuration) Emits a Provenance Event of typeJOINthat establishes that the given parents were joined together to create a new child FlowFile.voidProvenanceReporter.modifyAttributes(FlowFile flowFile) Emits a Provenance Event of typeATTRIBUTES_MODIFIEDthat indicates that the Attributes of the given FlowFile were updated.voidProvenanceReporter.modifyAttributes(FlowFile flowFile, String details) Emits a Provenance Event of typeATTRIBUTES_MODIFIEDthat indicates that the Attributes of the given FlowFile were updated.voidProvenanceReporter.modifyContent(FlowFile flowFile) Emits a Provenance Event of typeCONTENT_MODIFIEDthat indicates that the content of the given FlowFile has been modified.voidProvenanceReporter.modifyContent(FlowFile flowFile, long processingMillis) Emits a Provenance Event of typeCONTENT_MODIFIEDthat indicates that the content of the given FlowFile has been modified.voidProvenanceReporter.modifyContent(FlowFile flowFile, String details) Emits a Provenance Event of typeCONTENT_MODIFIEDthat indicates that the content of the given FlowFile has been modified.voidProvenanceReporter.modifyContent(FlowFile flowFile, String details, long processingMillis) Emits a Provenance Event of typeCONTENT_MODIFIEDthat indicates that the content of the given FlowFile has been modified.voidEmits a Provenance Event of typeRECEIVEthat indicates that the given FlowFile was created from data received from an external source.voidEmits a Provenance Event of typeRECEIVEthat indicates that the given FlowFile was created from data received from an external source.voidProvenanceReporter.receive(FlowFile flowFile, String transitUri, String sourceSystemFlowFileIdentifier) Emits a Provenance Event of typeRECEIVEthat 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.voidProvenanceReporter.receive(FlowFile flowFile, String transitUri, String details, long transmissionMillis) Emits a Provenance Event of typeRECEIVEthat 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.voidProvenanceReporter.receive(FlowFile flowFile, String transitUri, String sourceSystemFlowFileIdentifier, String details, long transmissionMillis) Emits a Provenance Event of typeRECEIVEthat 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.CLONEThis is valid only forProvenanceEventType.FORK,ProvenanceEventType.JOIN, andProvenanceEventType.CLONEevents 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.CLONEThis is valid only forProvenanceEventType.FORK,ProvenanceEventType.JOIN, andProvenanceEventType.CLONEevents and will be ignored for any other event types.voidProvenanceReporter.route(FlowFile flowFile, Relationship relationship) Emits a Provenance Event of typeROUTEthat indicates that the given FlowFile was routed to the givenRelationship.voidProvenanceReporter.route(FlowFile flowFile, Relationship relationship, long processingDuration) Emits a Provenance Event of typeROUTEthat indicates that the given FlowFile was routed to the givenRelationship.voidProvenanceReporter.route(FlowFile flowFile, Relationship relationship, String details) Emits a Provenance Event of typeROUTEthat indicates that the given FlowFile was routed to the givenRelationship.voidProvenanceReporter.route(FlowFile flowFile, Relationship relationship, String details, long processingDuration) Emits a Provenance Event of typeROUTEthat indicates that the given FlowFile was routed to the givenRelationship.voidEmits a Provenance Event of typeSENDthat indicates that a copy of the given FlowFile was sent to an external destination.voidEmits a Provenance Event of typeSENDthat indicates that a copy of the given FlowFile was sent to an external destination.voidEmits a Provenance Event of typeSENDthat indicates that a copy of the given FlowFile was sent to an external destination.voidProvenanceReporter.send(FlowFile flowFile, String transitUri, long transmissionMillis, boolean force) Emits a Provenance Event of typeSENDthat indicates that a copy of the given FlowFile was sent to an external destination.voidEmits a Provenance Event of typeSENDthat indicates that a copy of the given FlowFile was sent to an external destination.voidEmits a Provenance Event of typeSENDthat indicates that a copy of the given FlowFile was sent to an external destination.voidProvenanceReporter.send(FlowFile flowFile, String transitUri, String details, long transmissionMillis) Emits a Provenance Event of typeSENDthat indicates that a copy of the given FlowFile was sent to an external destination.voidProvenanceReporter.send(FlowFile flowFile, String transitUri, String details, long transmissionMillis, boolean force) Emits a Provenance Event of typeSENDthat 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 TypeMethodDescriptionvoidProvenanceReporter.fork(FlowFile parent, Collection<FlowFile> children) Emits a Provenance Event of typeFORKthat establishes that the given parent was split into multiple child FlowFiles.voidProvenanceReporter.fork(FlowFile parent, Collection<FlowFile> children, long forkDuration) Emits a Provenance Event of typeFORKthat establishes that the given parent was split into multiple child FlowFiles.voidProvenanceReporter.fork(FlowFile parent, Collection<FlowFile> children, String details) Emits a Provenance Event of typeFORKthat establishes that the given parent was split into multiple child FlowFiles.voidProvenanceReporter.fork(FlowFile parent, Collection<FlowFile> children, String details, long forkDuration) Emits a Provenance Event of typeFORKthat establishes that the given parent was split into multiple child FlowFiles.voidProvenanceReporter.join(Collection<FlowFile> parents, FlowFile child) Emits a Provenance Event of typeJOINthat establishes that the given parents were joined together to create a new child FlowFile.voidProvenanceReporter.join(Collection<FlowFile> parents, FlowFile child, long joinDuration) Emits a Provenance Event of typeJOINthat establishes that the given parents were joined together to create a new child FlowFile.voidProvenanceReporter.join(Collection<FlowFile> parents, FlowFile child, String details) Emits a Provenance Event of typeJOINthat establishes that the given parents were joined together to create a new child FlowFile.voidProvenanceReporter.join(Collection<FlowFile> parents, FlowFile child, String details, long joinDuration) Emits a Provenance Event of typeJOINthat establishes that the given parents were joined together to create a new child FlowFile.