CPC G06F 8/51 (2013.01) | 20 Claims |
1. A method of data stream model transformation, comprising:
creating a first JSON schema describing a first destination model of a consumer application, the first destination model defining a first destination data stream model of a first destination data stream to be input to the consumer application;
creating a first YAML template based on the first JSON schema, the first YAML template defining a first transformation to be implemented by a data stream transformer to transform a source data stream output by a source application and having a source data stream model, into the first destination data stream having the first destination data stream model;
compiling the first destination model JSON schema, by the data stream transformer, to create a set of first destination model classes;
generating the source data stream by the source application, the source data stream including source objects generated by the source application, the source objects being defined according to the source data stream model;
using reflection, by the data stream transformer, to obtain the source objects; and
using the first YAML template, by the data stream transformer, to generate corresponding first destination objects from the source objects, the corresponding first destination objects being created from the set of first destination model classes and forming the first destination data stream defined according to the first destination data stream model.
|