GenerateRecord 2.3.0

BUNDLE

org.apache.nifi | nifi-standard-nar

DESCRIPTION

This processor creates FlowFiles with records having random value for the specified fields. GenerateRecord is useful for testing, configuration, and simulation. It uses either user-defined properties to define a record schema or a provided schema and generates the specified number of records using random data for the fields in the schema.

TAGS

fake, generate, random, test

INPUT REQUIREMENT

FORBIDDEN

Supports Sensitive Dynamic Properties

false

PROPERTIES

Property

Description

null-percentage

The percent probability (0-100%) that a generated value for any nullable field will be null. Set this property to zero to have no null values, or 100 to have all null values.

nullable-fields

Whether the generated fields will be nullable. Note that this property is ignored if Schema Text is set. Also it only affects the schema of the generated data, not whether any values will be null. If this property is true, see ‘Null Value Percentage’ to set the probability that any generated field will be null.

number-of-records

Specifies how many records will be generated for each outgoing FlowFile.

record-writer

Specifies the Controller Service to use for writing out the records

schema-text

The text of an Avro-formatted Schema used to generate record data. If this property is set, any user-defined properties are ignored.

RELATIONSHIPS

NAME

DESCRIPTION

success

FlowFiles that are successfully created will be routed to this relationship

WRITES ATTRIBUTES

NAME

DESCRIPTION

mime.type

Sets the mime.type attribute to the MIME Type specified by the Record Writer

record.count

The number of records in the FlowFile

Language: English