streams-plugin-pig generates resources from json schemas to assist with analysis of json data using Apache Pig.
Output will be placed in target/generated-resources/pig by default
Run within a module containing a src/main/jsonschema directory
mvn org.apache.streams.plugins:streams-plugin-pig:0.5.1:generate-resources
Embed within your own java code
StreamsPigGenerationConfig config = new StreamsPigGenerationConfig(); config.setSourceDirectory("src/main/jsonschema"); config.setTargetDirectory("target/generated-resources"); StreamsPigResourceGenerator generator = new StreamsPigResourceGenerator(config); generator.run();