Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Transforming data en-flight #7

Open
docktermj opened this issue Jun 8, 2020 · 2 comments
Open

Support Transforming data en-flight #7

docktermj opened this issue Jun 8, 2020 · 2 comments
Assignees

Comments

@docktermj
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Support "transforming" in stream-producer.py This would make a true "ETL".

  • E: - JSON, CSV, Avro, Parquet
  • T: - Call a senzing.Transformer class
  • L: - RabbitMQ, Kafka, (SQS, Kinesis, etc.)

This would be similar to techniques used at:

Where "plugins" would be used to perform the Transforming. The plugin would receive a "record" as a python dictionary and return a list of 0 or more python dictionaries

class Transformer:

    def __init__(self, g2_engine=None, *args, **kwargs):
        self.g2_engine = g2_engine

    def transform(self, message=None, hint=None, *args, **kwargs):
        assert type(message) == dict
        messages = [dict1, dict2]        
        return messages
@docktermj docktermj self-assigned this Jun 9, 2020
@jbutcher21
Copy link

Sounds good. I'm ready to code these classes. I assume I will create ...
DNBTransformer.py
IJICTransformer.py
DowJonesTransformer.py
etc?

@roncewind
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants