Class DeleteMongo
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processors.mongodb.AbstractMongoProcessor
org.apache.nifi.processors.mongodb.DeleteMongo
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.processor.Processor
@InputRequirement(INPUT_REQUIRED)
@Tags({"delete","mongo","mongodb"})
@CapabilityDescription("Executes a delete query against a MongoDB collection. The query is provided in the body of the flowfile and the user can select whether it will delete one or many documents that match it.")
@ReadsAttribute(attribute="mongodb.delete.mode",
description="Configurable parameter for controlling delete mode on a per-flowfile basis. The process must be configured to use this option. Acceptable values are \'one\' and \'many.\'")
public class DeleteMongo
extends AbstractMongoProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.nifi.processors.mongodb.AbstractMongoProcessor
AbstractMongoProcessor.UpdateMethod -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final org.apache.nifi.components.AllowableValue(package private) static final org.apache.nifi.components.AllowableValue(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.AllowableValue(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.AllowableValueprivate static final List<org.apache.nifi.components.PropertyDescriptor> (package private) static final org.apache.nifi.processor.Relationship(package private) static final org.apache.nifi.processor.Relationshipprivate static final Set<org.apache.nifi.processor.Relationship> (package private) static final org.apache.nifi.components.AllowableValueFields inherited from class org.apache.nifi.processors.mongodb.AbstractMongoProcessor
ATTRIBUTE_MONGODB_UPDATE_MODE, BATCH_SIZE, CHARSET, CLIENT_SERVICE, clientService, COLLECTION_NAME, DATABASE_NAME, DATE_FORMAT, JSON_EXTENDED, JSON_STANDARD, JSON_TYPE, JSON_TYPE_EXTENDED, JSON_TYPE_STANDARD, mongoClient, objectMapper, QUERY_ATTRIBUTE, RESULTS_PER_FLOWFILE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.nifi.processors.mongodb.AbstractMongoProcessor
closeClient, configureMapper, createClient, getClientSettings, getCollection, getCommonPropertyDescriptors, getDatabase, getURI, updateModeMatches, writeBatchMethods 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
customValidate, 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
-
DELETE_ONE
static final org.apache.nifi.components.AllowableValue DELETE_ONE -
DELETE_MANY
static final org.apache.nifi.components.AllowableValue DELETE_MANY -
DELETE_ATTR
static final org.apache.nifi.components.AllowableValue DELETE_ATTR -
YES_FAIL
static final org.apache.nifi.components.AllowableValue YES_FAIL -
NO_FAIL
static final org.apache.nifi.components.AllowableValue NO_FAIL -
DELETE_MODE
static final org.apache.nifi.components.PropertyDescriptor DELETE_MODE -
FAIL_ON_NO_DELETE
static final org.apache.nifi.components.PropertyDescriptor FAIL_ON_NO_DELETE -
REL_SUCCESS
static final org.apache.nifi.processor.Relationship REL_SUCCESS -
REL_FAILURE
static final org.apache.nifi.processor.Relationship REL_FAILURE -
RELATIONSHIPS
-
PROPERTY_DESCRIPTORS
-
ALLOWED_DELETE_VALUES
-
-
Constructor Details
-
DeleteMongo
public DeleteMongo()
-
-
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
-
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
-