kronos-interceptor-object-data-processor-chunk
Splits a line by a sparator into tokens
API Reference
createFunctions(chunkDefinition)
Creates the checks for checking boolean values
Kind: global function
Param | Description |
---|---|
chunkDefinition | The chunk definition for these records. |
createHashFunction(hashFields, hashName)
Creates a function which generates a hash from the given content and stores the generated Hash under the given name in the record
Kind: global function
Param | Description |
---|---|
hashFields | All the field names used to create the hash |
hashName | The name to be used to store the hash value back in the record |
addError(data, error)
Adds an error to the stream data
Kind: global function
Param | Description |
---|---|
data | The current stream data |
error | The error to be added. |
createTmpHashAction()
Creates a hash function to compute a content hash without the multirow fields
Kind: global function
dataProcessorChunk.addRowActions()
Add custom actions to the rowActions. These actions will be executed per row
Kind: instance method of DataProcessorChunk
dataProcessorChunk._transform()
Reads the stream data and split it into lines.
Kind: instance method of DataProcessorChunk
dataProcessorChunk._flush()
Flushes the data. Only needed if there are multi row fields used
Kind: instance method of DataProcessorChunk
install
With npm do:
npm install kronos-interceptor-object-data-processor-chunk
license
BSD-2-Clause