SampleRecord 2.0.0

Bundle
org.apache.nifi | nifi-standard-nar
Description
Samples the records of a FlowFile based on a specified sampling strategy (such as Reservoir Sampling). The resulting FlowFile may be of a fixed number of records (in the case of reservoir-based algorithms) or some subset of the total number of records (in the case of probabilistic sampling), or a deterministic number of records (in the case of interval sampling).
Tags
interval, range, record, reservoir, sample
Input Requirement
REQUIRED
Supports Sensitive Dynamic Properties
false
Properties
System Resource Considerations
Resource Description
MEMORY An instance of this component can cause high usage of this system resource. Multiple instances or high concurrency settings may result a degradation of performance.
Relationships
Name Description
success The FlowFile is routed to this relationship if the sampling completed successfully
failure If a FlowFile fails processing for any reason (for example, any record is not valid), the original FlowFile will be routed to this relationship
original The original FlowFile is routed to this relationship if sampling is successful
Writes Attributes
Name Description
mime.type The MIME type indicated by the record writer
record.count The number of records in the resulting flow file