RecordReaderFactory
Implementations: JsonPathReader
Syslog5424Reader
CSVReader
JsonTreeReader
GrokReader
ExcelReader
ParquetReader
ReaderLookup
CEFReader
WindowsEventLogReader
ProtobufReader
SyslogReader
AvroReader
XMLReader
ScriptedReader
YamlTreeReader
Specifies the Controller Service to use for parsing incoming data and determining the data's schema | Record Writer | record-writer | | Controller Service API: RecordSetWriterFactory Implementations: ScriptedRecordSetWriter ParquetRecordSetWriter RecordSetWriterLookup CSVRecordSetWriter FreeFormTextRecordSetWriter JsonRecordSetWriter AvroRecordSetWriter XMLRecordSetWriter | Specifies the Controller Service to use for writing results to a FlowFile |
Sampling Strategy | sample-record-sampling-strategy | Reservoir Sampling | - Interval Sampling
- Range Sampling
- Probabilistic Sampling
- Reservoir Sampling
| Specifies which method to use for sampling records from the incoming FlowFile |
Sampling Interval | sample-record-interval | | | Specifies the number of records to skip before writing a record to the outgoing FlowFile. This property is only used if Sampling Strategy is set to Interval Sampling. A value of zero (0) will cause no records to be included in theoutgoing FlowFile, a value of one (1) will cause all records to be included, and a value of two (2) will cause half the records to be included, and so on. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
This Property is only considered if the [Sampling Strategy] Property has a value of "Interval Sampling". |
Sampling Range | sample-record-range | | | Specifies the range of records to include in the sample, from 1 to the total number of records. An example is '3,6-8,20-' which includes the third record, the sixth, seventh and eighth records, and all records from the twentieth record on. Commas separate intervals that don't overlap, and an interval can be between two numbers (i.e. 6-8) or up to a given number (i.e. -5), or from a number to the number of the last record (i.e. 20-). If this property is unset, all records will be included. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
This Property is only considered if the [Sampling Strategy] Property has a value of "Range Sampling". |
Sampling Probability | sample-record-probability | | | Specifies the probability (as a percent from 0-100) of a record being included in the outgoing FlowFile. This property is only used if Sampling Strategy is set to Probabilistic Sampling. A value of zero (0) will cause no records to be included in theoutgoing FlowFile, and a value of 100 will cause all records to be included in the outgoing FlowFile.. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
This Property is only considered if the [Sampling Strategy] Property has a value of "Probabilistic Sampling". |
Reservoir Size | sample-record-reservoir | | | Specifies the number of records to write to the outgoing FlowFile. This property is only used if Sampling Strategy is set to reservoir-based strategies such as Reservoir Sampling. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
This Property is only considered if the [Sampling Strategy] Property has a value of "Reservoir Sampling". |
Random Seed | sample-record-random-seed | | | Specifies a particular number to use as the seed for the random number generator (used by probabilistic strategies). Setting this property will ensure the same records are selected even when using probabilistic strategies. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
This Property is only considered if the [Sampling Strategy] Property is set to one of the following values: [Probabilistic Sampling], [Reservoir Sampling] |
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 |
Reads Attributes:
None specified.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 |
State management:
This component does not store state.Restricted:
This component is not restricted.Input requirement:
This component requires an incoming relationship.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. |