Github user zenfenan commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2448#discussion_r165990218
--- Diff:
nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/GetMongo.java
---
@@ -126,18 +142,37 @@ public ValidationResult validate(final String
subject, final String value, final
.expressionLanguageSupported(true)
.addValidator(StandardValidators.POSITIVE_INTEGER_VALIDATOR)
.build();
+ static final PropertyDescriptor ESTIMATE_PROGRESS = new
PropertyDescriptor.Builder()
+ .name("estimate-progress")
+ .displayName("Estimate Progress")
+ .description("If enabled, a count query will be run first, using
the configured query, and attributes will be added to each flowfile showing how
far they are into the result set.")
+ .required(true)
+ .addValidator(StandardValidators.BOOLEAN_VALIDATOR)
+ .allowableValues(GM_TRUE, GM_FALSE)
+ .defaultValue(GM_FALSE.getValue())
+ .build();
+ static final PropertyDescriptor PROGRESSIVE_COMMITS = new
PropertyDescriptor.Builder()
+ .name("progressive-commits")
+ .displayName("Commit After Each Batch")
+ .description("If the result set is broken up into multiple
flowfiles, this option can be used to commit after each flowfile is writte. " +
--- End diff --
Typo: after each flowfile is *written.*
---