Package org.apache.nifi.processor.util
Class FlowFileFilters
java.lang.Object
org.apache.nifi.processor.util.FlowFileFilters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.nifi.processor.FlowFileFilternewSizeBasedFilter(double maxSize, org.apache.nifi.processor.DataUnit unit, int maxCount) Returns a newFlowFileFilterthat will pull FlowFiles until the maximum file size has been reached, or the maximum FlowFile Count was been reached (this is important because FlowFiles may be 0 bytes!).
-
Constructor Details
-
FlowFileFilters
public FlowFileFilters()
-
-
Method Details
-
newSizeBasedFilter
public static org.apache.nifi.processor.FlowFileFilter newSizeBasedFilter(double maxSize, org.apache.nifi.processor.DataUnit unit, int maxCount) Returns a newFlowFileFilterthat will pull FlowFiles until the maximum file size has been reached, or the maximum FlowFile Count was been reached (this is important because FlowFiles may be 0 bytes!). If the first FlowFile exceeds the max size, the FlowFile will be selected and no other FlowFile will be.- Parameters:
maxSize- the maximum size of the group of FlowFilesunit- the unit of themaxSizeargumentmaxCount- the maximum number of FlowFiles to pull- Returns:
- filter
-