mirror of https://github.com/apache/nifi.git
NIFI-10410 Added InputRequirement annotation to ExtractGrok
Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes #6345.
This commit is contained in:
parent
ff202122e3
commit
4f87cd770b
|
@ -23,6 +23,7 @@ import io.krakens.grok.api.GrokCompiler;
|
|||
import io.krakens.grok.api.Match;
|
||||
import io.krakens.grok.api.exception.GrokException;
|
||||
import org.apache.nifi.annotation.behavior.EventDriven;
|
||||
import org.apache.nifi.annotation.behavior.InputRequirement;
|
||||
import org.apache.nifi.annotation.behavior.SideEffectFree;
|
||||
import org.apache.nifi.annotation.behavior.SupportsBatching;
|
||||
import org.apache.nifi.annotation.behavior.WritesAttribute;
|
||||
|
@ -67,6 +68,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
|||
@EventDriven
|
||||
@SupportsBatching
|
||||
@SideEffectFree
|
||||
@InputRequirement(InputRequirement.Requirement.INPUT_REQUIRED)
|
||||
@Tags({"grok", "log", "text", "parse", "delimit", "extract"})
|
||||
@CapabilityDescription("Evaluates one or more Grok Expressions against the content of a FlowFile, " +
|
||||
"adding the results as attributes or replacing the content of the FlowFile with a JSON " +
|
||||
|
|
Loading…
Reference in New Issue