apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shubham-pathak22 <...@git.apache.org>
Subject [GitHub] incubator-apex-malhar pull request: MLHR-1962 json parser enhancem...
Date Wed, 06 Jan 2016 11:06:42 GMT
GitHub user shubham-pathak22 opened a pull request:


    MLHR-1962 json parser enhancements

    * Enhanced existing JSON Parser.
    * Now user can provide json schema against which the incoming tuple would be validated.
    * JSON Schema is as per http://json-schema.org/
    * Operator has 3 output ports. 
        * **ParsedOutputPort :**  emits incoming JSON as JSONObject. 
        * **Out port:** emits incoming JSON as POJO
        * **Err port:** emits tuples that could not be parsed as a KeyValPair where key is
the tuple and value is the reason.
    * POJO class needs to be provided if downstream operator connects to port that emits POJO.
    * Metrics are provided to give count of incomingTuples, errorTuples, pojos , and parsedObjects

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/shubham-pathak22/incubator-apex-malhar MLHR-1962

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #163
commit 967c88cd257c350d58d4e726b63a868bdbd2373c
Author: shubham <shubham-pathak22@github.com>
Date:   2016-01-04T07:13:01Z

    json parser enhancements


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message