QueryCassandra 2.3.0.4.10.0.0-147

Bundle
org.apache.nifi | nifi-cassandra-nar
Description
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 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.
Tags
cassandra, cql, select
Input Requirement
ALLOWED
Supports Sensitive Dynamic Properties
false
Properties
Relationships
Name Description
retry A FlowFile is transferred to this relationship if the operation cannot be completed but attempting it again may succeed.
success A FlowFile is transferred to this relationship if the operation completed successfully.
failure A FlowFile is transferred to this relationship if the operation failed.
Writes Attributes
Name Description
executecql.row.count The number of rows returned by the CQL query
fragment.identifier If 'Max Rows Per Flow File' is set then all FlowFiles from the same query result set will have the same value for the fragment.identifier attribute. This can then be used to correlate the results.
fragment.count If 'Max Rows Per Flow File' is set then this is the total number of FlowFiles produced by a single ResultSet. This can be used in conjunction with the fragment.identifier attribute in order to know how many FlowFiles belonged to the same incoming ResultSet. If Output Batch Size is set, then this attribute will not be populated.
fragment.index If 'Max Rows Per Flow File' is set then the position of this FlowFile in the list of outgoing FlowFiles that were all derived from the same result set FlowFile. This can be used in conjunction with the fragment.identifier attribute to know which FlowFiles originated from the same query result set and in what order FlowFiles were produced