[11/32] incubator-streams git commit: hive generation is looking pretty good
hive generation is looking pretty good Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/9618adaf Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/9618adaf Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/9618adaf Branch: refs/heads/STREAMS-389 Commit: 9618adaf3f828f9f3682226f666e5732824e4212 Parents: bf31cbe Author: Steve Blackmon @steveblackmon Authored: Tue May 3 16:32:58 2016 -0500 Committer: Steve Blackmon @steveblackmon Committed: Tue May 3 16:32:58 2016 -0500 -- streams-plugins/streams-plugin-hive/pom.xml | 23 +- .../plugins/StreamsHiveResourceGenerator.java | 221 - .../StreamsHiveResourceGeneratorMojo.java | 68 .../hive/StreamsHiveGenerationConfig.java | 84 + .../hive/StreamsHiveResourceGenerator.java | 322 +++ .../hive/StreamsHiveResourceGeneratorMojo.java | 76 + .../test/StreamsHiveResourceGeneratorTest.java | 88 - .../src/test/resources/expected/activity.hql| 203 .../src/test/resources/expected/collection.hql | 47 +++ .../src/test/resources/expected/media_link.hql | 11 + .../src/test/resources/expected/object.hql | 61 .../resources/expected/objectTypes/place.hql| 79 + .../test/resources/expected/verbs/purchase.hql | 203 streams-schemas/pom.xml | 37 ++- .../org/apache/streams/schema/FieldType.java| 13 + .../org/apache/streams/schema/FieldUtil.java| 29 ++ .../org/apache/streams/schema/FileUtil.java | 69 .../apache/streams/schema/GenerationConfig.java | 115 +++ .../java/org/apache/streams/schema/Schema.java | 57 .../org/apache/streams/schema/SchemaStore.java | 283 .../org/apache/streams/schema/SchemaUtil.java | 50 +++ .../java/org/apache/streams/schema/URIUtil.java | 31 ++ 22 files changed, 1860 insertions(+), 310 deletions(-) -- http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/9618adaf/streams-plugins/streams-plugin-hive/pom.xml -- diff --git a/streams-plugins/streams-plugin-hive/pom.xml b/streams-plugins/streams-plugin-hive/pom.xml index 22d75ce..b173a8d 100644 --- a/streams-plugins/streams-plugin-hive/pom.xml +++ b/streams-plugins/streams-plugin-hive/pom.xml @@ -40,6 +40,12 @@ org.apache.streams streams-config ${project.version} + + +commons-logging +commons-logging + + org.apache.streams @@ -47,15 +53,13 @@ ${project.version} -org.jsonschema2pojo -jsonschema2pojo-core - - org.apache.streams -streams-pojo +streams-schemas ${project.version} -test -test-jar + + +com.google.guava +guava org.reflections @@ -219,9 +223,10 @@ unpack-dependencies - streams-pojo + org.apache.streams + streams-schemas **/*.json - ${project.build.directory}/test-classes + ${project.build.directory}/test-classes/streams-schemas http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/9618adaf/streams-plugins/streams-plugin-hive/src/main/java/org/apache/streams/plugins/StreamsHiveResourceGenerator.java -- diff --git a/streams-plugins/streams-plugin-hive/src/main/java/org/apache/streams/plugins/StreamsHiveResourceGenerator.java b/streams-plugins/streams-plugin-hive/src/main/java/org/apache/streams/plugins/StreamsHiveResourceGenerator.java deleted file mode 100644 index 1efb15e..000 --- a/streams-plugins/streams-plugin-hive/src/main/java/org/apache/streams/plugins/StreamsHiveResourceGenerator.java +++ /dev/null @@ -1,221 +0,0 @@ -package org.apache.streams.plugins; - -import com.google.common.base.Strings; -import com.google.common.collect.Lists; -import com.google.common.collect.Maps; -import org.reflections.ReflectionUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.io.File; -import java.io.Serializable; -import java.lang.reflect.Field; -import java.nio.file.Files; -import java.nio.file.Paths; -import java.nio.file.StandardOpenOption; -import ja
[11/32] incubator-streams git commit: hive generation is looking pretty good
hive generation is looking pretty good Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/9618adaf Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/9618adaf Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/9618adaf Branch: refs/feature/STREAMS-389,398 Commit: 9618adaf3f828f9f3682226f666e5732824e4212 Parents: bf31cbe Author: Steve Blackmon @steveblackmon Authored: Tue May 3 16:32:58 2016 -0500 Committer: Steve Blackmon @steveblackmon Committed: Tue May 3 16:32:58 2016 -0500 -- streams-plugins/streams-plugin-hive/pom.xml | 23 +- .../plugins/StreamsHiveResourceGenerator.java | 221 - .../StreamsHiveResourceGeneratorMojo.java | 68 .../hive/StreamsHiveGenerationConfig.java | 84 + .../hive/StreamsHiveResourceGenerator.java | 322 +++ .../hive/StreamsHiveResourceGeneratorMojo.java | 76 + .../test/StreamsHiveResourceGeneratorTest.java | 88 - .../src/test/resources/expected/activity.hql| 203 .../src/test/resources/expected/collection.hql | 47 +++ .../src/test/resources/expected/media_link.hql | 11 + .../src/test/resources/expected/object.hql | 61 .../resources/expected/objectTypes/place.hql| 79 + .../test/resources/expected/verbs/purchase.hql | 203 streams-schemas/pom.xml | 37 ++- .../org/apache/streams/schema/FieldType.java| 13 + .../org/apache/streams/schema/FieldUtil.java| 29 ++ .../org/apache/streams/schema/FileUtil.java | 69 .../apache/streams/schema/GenerationConfig.java | 115 +++ .../java/org/apache/streams/schema/Schema.java | 57 .../org/apache/streams/schema/SchemaStore.java | 283 .../org/apache/streams/schema/SchemaUtil.java | 50 +++ .../java/org/apache/streams/schema/URIUtil.java | 31 ++ 22 files changed, 1860 insertions(+), 310 deletions(-) -- http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/9618adaf/streams-plugins/streams-plugin-hive/pom.xml -- diff --git a/streams-plugins/streams-plugin-hive/pom.xml b/streams-plugins/streams-plugin-hive/pom.xml index 22d75ce..b173a8d 100644 --- a/streams-plugins/streams-plugin-hive/pom.xml +++ b/streams-plugins/streams-plugin-hive/pom.xml @@ -40,6 +40,12 @@ org.apache.streams streams-config ${project.version} + + +commons-logging +commons-logging + + org.apache.streams @@ -47,15 +53,13 @@ ${project.version} -org.jsonschema2pojo -jsonschema2pojo-core - - org.apache.streams -streams-pojo +streams-schemas ${project.version} -test -test-jar + + +com.google.guava +guava org.reflections @@ -219,9 +223,10 @@ unpack-dependencies - streams-pojo + org.apache.streams + streams-schemas **/*.json - ${project.build.directory}/test-classes + ${project.build.directory}/test-classes/streams-schemas http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/9618adaf/streams-plugins/streams-plugin-hive/src/main/java/org/apache/streams/plugins/StreamsHiveResourceGenerator.java -- diff --git a/streams-plugins/streams-plugin-hive/src/main/java/org/apache/streams/plugins/StreamsHiveResourceGenerator.java b/streams-plugins/streams-plugin-hive/src/main/java/org/apache/streams/plugins/StreamsHiveResourceGenerator.java deleted file mode 100644 index 1efb15e..000 --- a/streams-plugins/streams-plugin-hive/src/main/java/org/apache/streams/plugins/StreamsHiveResourceGenerator.java +++ /dev/null @@ -1,221 +0,0 @@ -package org.apache.streams.plugins; - -import com.google.common.base.Strings; -import com.google.common.collect.Lists; -import com.google.common.collect.Maps; -import org.reflections.ReflectionUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.io.File; -import java.io.Serializable; -import java.lang.reflect.Field; -import java.nio.file.Files; -import java.nio.file.Paths; -import java.nio.file.StandardOpenOption; -imp