Github user pvillard31 commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1937#discussion_r124734093
  
    --- Diff: 
nifi-nar-bundles/nifi-cassandra-bundle/nifi-cassandra-processors/src/main/java/org/apache/nifi/processors/cassandra/QueryCassandra.java
 ---
    @@ -75,19 +81,64 @@
     @Tags({"cassandra", "cql", "select"})
     @EventDriven
     @InputRequirement(InputRequirement.Requirement.INPUT_ALLOWED)
    -@CapabilityDescription("Execute provided Cassandra Query Language (CQL) 
select query on a Cassandra 1.x, 2.x, or 3.0.x cluster. Query result "
    -        + "may be converted to Avro or JSON format. Streaming is used so 
arbitrarily large result sets are supported. This processor can be "
    +@CapabilityDescription("Executes provided Cassandra Query Language (CQL) 
select query on a Cassandra to fetch all rows whose values"
    +        + "in the specified Maximum Value column(s) are larger than the 
previously-seen maxima.Query result"
    +        + "may be converted to Avro, JSON or CSV format. Streaming is used 
so arbitrarily large result sets are supported. This processor can be "
             + "scheduled to run on a timer, or cron expression, using the 
standard scheduling methods, or it can be triggered by an incoming FlowFile. "
             + "If it is triggered by an incoming FlowFile, then attributes of 
that FlowFile will be available when evaluating the "
             + "select query. FlowFile attribute 'executecql.row.count' 
indicates how many rows were selected.")
    +@Stateful(scopes = Scope.CLUSTER, description = "After performing query, 
the maximum value of the specified column is stored, "
    +        + "fetch all rows whose values in the specified Maximum Value 
column(s) are larger than the previously-seen maximum"
    +        + "State is stored across the cluster so that the next time this 
Processor can be run with min and max values")
     @WritesAttributes({@WritesAttribute(attribute = "executecql.row.count", 
description = "The number of rows returned by the CQL query")})
     public class QueryCassandra extends AbstractCassandraProcessor {
     
    +    public static final String CSV_FORMAT = "CSV";
         public static final String AVRO_FORMAT = "Avro";
         public static final String JSON_FORMAT = "JSON";
     
    +    public static final String CASSANDRA_WATERMARK_MIN_VALUE_ID = 
"CASSANDRA_WATERMARK_MIN_VALUE_ID";
    +    public static final String CASSANDRA_WATERMARK_MAX_VALUE_ID = 
"CASSANDRA_WATERMARK_MAX_VALUE_ID";
    +
         public static final String RESULT_ROW_COUNT = "executecql.row.count";
     
    +    public static final PropertyDescriptor INIT_WATERMARK = new 
PropertyDescriptor.Builder().name("Initial Watermark Value")
    +            .description("Use it only once.")
    --- End diff --
    
    Can you put .name() on a new line like the other properties. Also, can you 
use .displayName() for what will be displayed at the UI and .name() for a more 
"computer-friendly" name? That's not mandatory but it's a convention we're 
trying to adopt. Same for other new properties.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to