mirror of https://github.com/apache/nifi.git
NIFI-1103: Added InputRequirement annotation
This commit is contained in:
parent
2b1d093120
commit
fedbe40313
|
@ -28,6 +28,8 @@ import java.util.Set;
|
||||||
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.nifi.annotation.behavior.EventDriven;
|
import org.apache.nifi.annotation.behavior.EventDriven;
|
||||||
|
import org.apache.nifi.annotation.behavior.InputRequirement;
|
||||||
|
import org.apache.nifi.annotation.behavior.InputRequirement.Requirement;
|
||||||
import org.apache.nifi.annotation.behavior.SupportsBatching;
|
import org.apache.nifi.annotation.behavior.SupportsBatching;
|
||||||
import org.apache.nifi.annotation.behavior.WritesAttribute;
|
import org.apache.nifi.annotation.behavior.WritesAttribute;
|
||||||
import org.apache.nifi.annotation.documentation.CapabilityDescription;
|
import org.apache.nifi.annotation.documentation.CapabilityDescription;
|
||||||
|
@ -54,6 +56,7 @@ import org.apache.nifi.processor.util.StandardValidators;
|
||||||
@EventDriven
|
@EventDriven
|
||||||
@SupportsBatching
|
@SupportsBatching
|
||||||
@Tags({"map", "cache", "put", "distributed"})
|
@Tags({"map", "cache", "put", "distributed"})
|
||||||
|
@InputRequirement(Requirement.INPUT_REQUIRED)
|
||||||
@CapabilityDescription("Gets the content of a FlowFile and puts it to a distributed map cache, using a cache key " +
|
@CapabilityDescription("Gets the content of a FlowFile and puts it to a distributed map cache, using a cache key " +
|
||||||
"computed from FlowFile attributes. If the cache already contains the entry and the cache update strategy is " +
|
"computed from FlowFile attributes. If the cache already contains the entry and the cache update strategy is " +
|
||||||
"'keep original' the entry is not replaced.'")
|
"'keep original' the entry is not replaced.'")
|
||||||
|
|
Loading…
Reference in New Issue