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
  • 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

      private static final Set<org.apache.nifi.processor.Relationship> RELATIONSHIPS
    • PROPERTY_DESCRIPTORS

      private static final List<org.apache.nifi.components.PropertyDescriptor> PROPERTY_DESCRIPTORS
    • ALLOWED_DELETE_VALUES

      private static final List<String> ALLOWED_DELETE_VALUES
  • Constructor Details

    • DeleteMongo

      public DeleteMongo()
  • Method Details

    • getRelationships

      public Set<org.apache.nifi.processor.Relationship> getRelationships()
      Specified by:
      getRelationships in interface org.apache.nifi.processor.Processor
      Overrides:
      getRelationships in class org.apache.nifi.processor.AbstractSessionFactoryProcessor
    • getSupportedPropertyDescriptors

      public List<org.apache.nifi.components.PropertyDescriptor> getSupportedPropertyDescriptors()
      Overrides:
      getSupportedPropertyDescriptors in class org.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:
      onTrigger in class org.apache.nifi.processor.AbstractProcessor
      Throws:
      org.apache.nifi.processor.exception.ProcessException