Class PutAzureCosmosDBRecord
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processors.azure.cosmos.document.AbstractAzureCosmosDBProcessor
org.apache.nifi.processors.azure.cosmos.document.PutAzureCosmosDBRecord
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.processor.Processor
@Tags({"azure","cosmos","insert","record","put"})
@InputRequirement(INPUT_REQUIRED)
@CapabilityDescription("This processor is a record-aware processor for inserting data into Cosmos DB with Core SQL API. It uses a configured record reader and schema to read an incoming record set from the body of a Flowfile and then inserts those records into a configured Cosmos DB Container.")
@SystemResourceConsideration(resource=MEMORY)
public class PutAzureCosmosDBRecord
extends AbstractAzureCosmosDBProcessor
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final org.apache.nifi.components.PropertyDescriptorprivate String(package private) static final org.apache.nifi.components.AllowableValue(package private) static final org.apache.nifi.components.PropertyDescriptorprivate static final List<org.apache.nifi.components.PropertyDescriptor> (package private) static final org.apache.nifi.components.PropertyDescriptorprivate static final Set<org.apache.nifi.processor.Relationship> (package private) static final org.apache.nifi.components.AllowableValueFields inherited from class org.apache.nifi.processors.azure.cosmos.document.AbstractAzureCosmosDBProcessor
CONNECTION_SERVICE, CONTAINER_ID, DATABASE_NAME, descriptors, PARTITION_KEY, REL_FAILURE, REL_SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbulkInsert(List<Map<String, Object>> records) protected voiddoPostActionOnSchedule(org.apache.nifi.processor.ProcessContext context) Set<org.apache.nifi.processor.Relationship> List<org.apache.nifi.components.PropertyDescriptor> voidonTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session) Methods inherited from class org.apache.nifi.processors.azure.cosmos.document.AbstractAzureCosmosDBProcessor
createCosmosClient, customValidate, getAccessKey, getConnectionService, getConsistencyLevel, getContainer, getCosmosClient, getCosmosDocumentContainer, getURI, onScheduled, onStopped, setConnectionService, setContainer, setCosmosClientMethods inherited from class org.apache.nifi.processor.AbstractProcessor
onTriggerMethods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.processor.Processor
isStateful, migrateProperties, migrateRelationships
-
Field Details
-
conflictHandlingStrategy
-
IGNORE_CONFLICT
static final org.apache.nifi.components.AllowableValue IGNORE_CONFLICT -
UPSERT_CONFLICT
static final org.apache.nifi.components.AllowableValue UPSERT_CONFLICT -
RECORD_READER_FACTORY
static final org.apache.nifi.components.PropertyDescriptor RECORD_READER_FACTORY -
INSERT_BATCH_SIZE
static final org.apache.nifi.components.PropertyDescriptor INSERT_BATCH_SIZE -
CONFLICT_HANDLE_STRATEGY
static final org.apache.nifi.components.PropertyDescriptor CONFLICT_HANDLE_STRATEGY -
relationships
-
propertyDescriptors
-
-
Constructor Details
-
PutAzureCosmosDBRecord
public PutAzureCosmosDBRecord()
-
-
Method Details
-
getRelationships
- Specified by:
getRelationshipsin interfaceorg.apache.nifi.processor.Processor- Overrides:
getRelationshipsin classorg.apache.nifi.processor.AbstractSessionFactoryProcessor
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classorg.apache.nifi.components.AbstractConfigurableComponent
-
bulkInsert
- Throws:
com.azure.cosmos.CosmosException
-
onTrigger
public void onTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session) throws org.apache.nifi.processor.exception.ProcessException - Specified by:
onTriggerin classorg.apache.nifi.processor.AbstractProcessor- Throws:
org.apache.nifi.processor.exception.ProcessException
-
doPostActionOnSchedule
protected void doPostActionOnSchedule(org.apache.nifi.processor.ProcessContext context) - Specified by:
doPostActionOnSchedulein classAbstractAzureCosmosDBProcessor
-