Class GetMongoRecord

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.processor.Processor

@CapabilityDescription("A record-based version of GetMongo that uses the Record writers to write the MongoDB result set.") @Tags({"mongo","mongodb","get","fetch","record","json"}) @InputRequirement(INPUT_ALLOWED) @WritesAttribute(attribute="mongo.database.name",description="The database where the results came from.") @WritesAttribute(attribute="mongo.collection.name",description="The collection where the results came from.") public class GetMongoRecord extends AbstractMongoQueryProcessor
  • Field Details

    • WRITER_FACTORY

      public static final org.apache.nifi.components.PropertyDescriptor WRITER_FACTORY
    • SCHEMA_NAME

      public static final org.apache.nifi.components.PropertyDescriptor SCHEMA_NAME
    • PROPERTY_DESCRIPTORS

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

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

      private volatile MongoDBClientService clientService
    • writerFactory

      private volatile RecordSetWriterFactory writerFactory
  • Constructor Details

    • GetMongoRecord

      public GetMongoRecord()
  • Method Details

    • getSupportedPropertyDescriptors

      public List<org.apache.nifi.components.PropertyDescriptor> getSupportedPropertyDescriptors()
      Overrides:
      getSupportedPropertyDescriptors in class org.apache.nifi.components.AbstractConfigurableComponent
    • 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
    • onEnabled

      @OnScheduled public void onEnabled(org.apache.nifi.processor.ProcessContext context)
    • 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