PutRedisHashRecord 2.3.0¶

BUNDLE¶

org.apache.nifi | nifi-redis-nar

DESCRIPTION¶

Puts record field data into Redis using a specified hash value, which is determined by a RecordPath to a field in each record containing the hash value. The record fields and values are stored as key/value pairs associated by the hash value. NOTE: Neither the evaluated hash value nor any of the field values can be null. If the hash value is null, the FlowFile will be routed to failure. For each of the field values, if the value is null that field will be not set in Redis.

TAGS¶

hash, put, record, redis

INPUT REQUIREMENT¶

REQUIRED

Supports Sensitive Dynamic Properties¶

false

PROPERTIES¶

Property

Description

charset

Specifies the character set to use when storing record field values as strings. All fields will be converted to strings using this character set before being stored in Redis.

data-record-path

This property denotes a RecordPath that will be evaluated against each incoming Record and the Record that results from evaluating the RecordPath will be sent to Redis instead of sending the entire incoming Record. The property defaults to the root ‘/’ which corresponds to a ‘flat’ record (all fields/values at the top level of the Record.

hash-value-record-path

Specifies a RecordPath to evaluate against each Record in order to determine the hash value associated with all the record fields/values (see ‘hset’ in Redis documentation for more details). The RecordPath must point at exactly one field or an error will occur.

record-reader

Specifies the Controller Service to use for parsing incoming data and determining the data’s schema

redis-connection-pool

RELATIONSHIPS¶

NAME

DESCRIPTION

failure

FlowFiles containing Records with processing errors will be routed to this relationship

success

FlowFiles having all Records stored in Redis will be routed to this relationship

WRITES ATTRIBUTES¶

NAME

DESCRIPTION

redis.success.record.count

Number of records written to Redis