Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/main/java/org/apache/nifi/processor/FlowFileFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,17 @@
public interface FlowFileFilter {

/**
* Indicates whether or not the given FlowFile should be selected and
* whether or not the Processor is interested in filtering additional
* FlowFiles
* Indicates whether the given FlowFile should be selected and
* whether the Processor is interested in filtering additional FlowFiles.
*
* @param flowFile to apply the filter to
* @return true if the given FlowFile should be selected and
* if Processor is interested in filtering additional
* FlowFiles
* @return An instance of {@code FlowFileFilterResult} to indicate whether the given FlowFile should be selected and
* if Processor is interested in filtering additional FlowFiles.
*/
FlowFileFilterResult filter(FlowFile flowFile);

/**
* Provides a result type to indicate whether or not a FlowFile should be
* Provides a result type to indicate whether a FlowFile should be
* selected
*/
enum FlowFileFilterResult {
Expand Down