Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Kronos-Integration/interceptor-object-data-processor-chunk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm License minified size downloads Styled with prettier Commitizen friendly

kronos-interceptor-object-data-processor-chunk

Splits a line by a sparator into tokens

API

Table of Contents

ChunkProcessorInterceptor

Extends Interceptor

This interceptor cares about the handling of the messages. It will add the hops and copies the messages

Parameters

  • config
  • endpoint

stream

This module will turn an array of tokens into an object.

constructor

Parameters

  • opts
  • validate

addRowActions

Add custom actions to the rowActions. These actions will be executed per row

Parameters

  • actions

_transform

Reads the stream data and split it into lines.

Parameters

  • data
  • enc
  • cb

_flush

Flushes the data. Only needed if there are multi row fields used

Parameters

  • cb

addError

Adds an error to the stream data

Parameters

  • 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

Parameters

  • contentHashFields
  • multiRowFields

createFunctions

Creates the checks for checking boolean values

Parameters

  • chunkDefinition The chunk definition for these records.

createHashFunction

Creates a function which generates a hash from the given content and stores the generated Hash under the given name in the record

Parameters

  • 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

record

The function gerates the hash for the given record

Parameters

  • record The record to create the hash for

install

With npm do:

npm install kronos-interceptor-object-data-processor-chunk

license

BSD-2-Clause

About

process and check import data streams. This checks the aggregated data

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •