Splits a line by a sparator into tokens
- ChunkProcessorInterceptor
- stream
- constructor
- addRowActions
- _transform
- _flush
- addError
- createTmpHashAction
- createFunctions
- createHashFunction
- record
Extends Interceptor
This interceptor cares about the handling of the messages. It will add the hops and copies the messages
configendpoint
This module will turn an array of tokens into an object.
optsvalidate
Add custom actions to the rowActions. These actions will be executed per row
actions
Reads the stream data and split it into lines.
dataenccb
Flushes the data. Only needed if there are multi row fields used
cb
Adds an error to the stream data
dataThe current stream dataerrorThe error to be added.
Creates a hash function to compute a content hash without the multirow fields
contentHashFieldsmultiRowFields
Creates the checks for checking boolean values
chunkDefinitionThe chunk definition for these records.
Creates a function which generates a hash from the given content and stores the generated Hash under the given name in the record
hashFieldsAll the field names used to create the hashhashNameThe name to be used to store the hash value back in the record
The function gerates the hash for the given record
recordThe record to create the hash for
With npm do:
npm install kronos-interceptor-object-data-processor-chunkBSD-2-Clause