Class GetMongoRecord
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.AbstractMongoQueryProcessor
org.apache.nifi.processors.mongodb.GetMongoRecord
- 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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.nifi.processors.mongodb.AbstractMongoProcessor
AbstractMongoProcessor.UpdateMethod -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MongoDBClientServiceprivate static final List<org.apache.nifi.components.PropertyDescriptor> private static final Set<org.apache.nifi.processor.Relationship> static final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorprivate RecordSetWriterFactoryFields inherited from class org.apache.nifi.processors.mongodb.AbstractMongoQueryProcessor
BATCH_SIZE, COL_NAME, DB_NAME, LIMIT, PROJECTION, QUERY, REL_FAILURE, REL_ORIGINAL, REL_SUCCESS, RESULTS_PER_FLOWFILE, SORTFields inherited from class org.apache.nifi.processors.mongodb.AbstractMongoProcessor
ATTRIBUTE_MONGODB_UPDATE_MODE, CHARSET, CLIENT_SERVICE, COLLECTION_NAME, DATABASE_NAME, DATE_FORMAT, JSON_EXTENDED, JSON_STANDARD, JSON_TYPE, JSON_TYPE_EXTENDED, JSON_TYPE_STANDARD, mongoClient, objectMapper, QUERY_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<org.apache.nifi.processor.Relationship> List<org.apache.nifi.components.PropertyDescriptor> voidonEnabled(org.apache.nifi.processor.ProcessContext context) voidonTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session) Methods inherited from class org.apache.nifi.processors.mongodb.AbstractMongoQueryProcessor
getAttributes, getQueryMethods 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
-
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
-
RELATIONSHIPS
-
clientService
-
writerFactory
-
-
Constructor Details
-
GetMongoRecord
public GetMongoRecord()
-
-
Method Details
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classorg.apache.nifi.components.AbstractConfigurableComponent
-
getRelationships
- Specified by:
getRelationshipsin interfaceorg.apache.nifi.processor.Processor- Overrides:
getRelationshipsin classorg.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:
onTriggerin classorg.apache.nifi.processor.AbstractProcessor- Throws:
org.apache.nifi.processor.exception.ProcessException
-