@EventDriven @InputRequirement(value=INPUT_REQUIRED) @Tags(value={"record","put","sink"}) @CapabilityDescription(value="The PutRecord processor uses a specified RecordReader to input (possibly multiple) records from an incoming flow file, and sends them to a destination specified by a Record Destination Service (i.e. record sink).") public class PutRecord extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
INCLUDE_ZERO_RECORD_RESULTS |
private static List<PropertyDescriptor> |
properties |
(package private) static PropertyDescriptor |
RECORD_READER |
static PropertyDescriptor |
RECORD_SINK |
private RecordSinkService |
recordSinkService |
(package private) static Relationship |
REL_FAILURE |
(package private) static Relationship |
REL_RETRY |
(package private) static Relationship |
REL_SUCCESS |
private static Set<Relationship> |
relationships |
| Constructor and Description |
|---|
PutRecord() |
| Modifier and Type | Method and Description |
|---|---|
Set<Relationship> |
getRelationships() |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
onScheduled(ProcessContext context) |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
onTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTruecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatestatic final PropertyDescriptor RECORD_READER
public static final PropertyDescriptor RECORD_SINK
public static final PropertyDescriptor INCLUDE_ZERO_RECORD_RESULTS
static final Relationship REL_SUCCESS
static final Relationship REL_RETRY
static final Relationship REL_FAILURE
private static final List<PropertyDescriptor> properties
private static final Set<Relationship> relationships
private volatile RecordSinkService recordSinkService
public Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessorprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponent@OnScheduled public void onScheduled(ProcessContext context)
public void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger in class AbstractProcessorProcessExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.