GetMongoRecord 2.3.0¶
BUNDLE¶
org.apache.nifi | nifi-mongodb-nar
DESCRIPTION¶
A record-based version of GetMongo that uses the Record writers to write the MongoDB result set.
INPUT REQUIREMENT¶
ALLOWED
Supports Sensitive Dynamic Properties¶
false
PROPERTIES¶
Property |
Description |
---|---|
Batch Size |
The number of elements to be returned from the server in one batch |
Limit |
The maximum number of elements to return |
Mongo Collection Name |
The name of the collection to use |
Mongo Database Name |
The name of the database to use |
Projection |
The fields to be returned from the documents in the result set; must be a valid BSON document |
Query |
The selection criteria to do the lookup. If the field is left blank, it will look for input from an incoming connection from another processor to provide the query as a valid JSON document inside of the FlowFile’s body. If this field is left blank and a timer is enabled instead of an incoming connection, that will result in a full collection fetch using a “{}” query. |
Sort |
The fields by which to sort; must be a valid BSON document |
get-mongo-record-writer-factory |
The record writer to use to write the result sets. |
mongo-client-service |
If configured, this property will use the assigned client service for connection pooling. |
mongo-query-attribute |
If set, the query will be written to a specified attribute on the output flowfiles. |
mongodb-schema-name |
The name of the schema in the configured schema registry to use for the query results. |
RELATIONSHIPS¶
NAME |
DESCRIPTION |
---|---|
failure |
All input FlowFiles that are part of a failed query execution go here. |
original |
All input FlowFiles that are part of a successful query execution go here. |
success |
All FlowFiles that have the results of a successful query execution go here. |
WRITES ATTRIBUTES¶
NAME |
DESCRIPTION |
---|---|
mongo.database.name |
The database where the results came from. |
mongo.collection.name |
The collection where the results came from. |