CountText 2.0.0

Bundle
org.apache.nifi | nifi-standard-nar
Description
Counts various metrics on incoming text. The requested results will be recorded as attributes. The resulting flowfile will not have its content modified.
Tags
character, count, line, text, word
Input Requirement
REQUIRED
Supports Sensitive Dynamic Properties
false
Properties
Relationships
Name Description
failure If the flowfile text cannot be counted for some reason, the original file will be routed to this destination and nothing will be routed elsewhere
success The flowfile contains the original content with one or more attributes added containing the respective counts
Writes Attributes
Name Description
text.line.count The number of lines of text present in the FlowFile content
text.line.nonempty.count The number of lines of text (with at least one non-whitespace character) present in the original FlowFile
text.word.count The number of words present in the original FlowFile
text.character.count The number of characters (given the specified character encoding) present in the original FlowFile
See Also