Paul Rogers has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/12079


Change subject: IMPALA-7968, Part 1: JSON serialization framework
......................................................................

IMPALA-7968, Part 1: JSON serialization framework

Provides a set of interfaces and classes to serialize the analyzer AST
to JSON. This part provides the serialization framework itself, later
parts will provide the serialization code and test framework.

The framework is modular with two implementations: one that uses
JSONSimple (already an Impala dependency) to create JSON objects,
another that uses a bespoke JSON serializer optimized to produce
compact, repeatable output for testing. The framework allows other
serializers to be added later. Perhaps YAML might prove even more
compact than JSON.

Testing: test cases exercise the mechanisms. The code is an island in
the patch; no other code uses it yet.

Change-Id: Ie3101c2708bf6cf4bec61af83a5db9b6d70ddd9c
---
A 
fe/src/main/java/org/apache/impala/common/serialize/AbstractTreeSerializer.java
A fe/src/main/java/org/apache/impala/common/serialize/ArraySerializer.java
A fe/src/main/java/org/apache/impala/common/serialize/JsonSerializable.java
A fe/src/main/java/org/apache/impala/common/serialize/JsonSerializer.java
A fe/src/main/java/org/apache/impala/common/serialize/JsonTreeFormatter.java
A fe/src/main/java/org/apache/impala/common/serialize/ObjectSerializer.java
A fe/src/main/java/org/apache/impala/common/serialize/ToJsonOptions.java
A fe/src/main/java/org/apache/impala/common/serialize/TreeSerializer.java
A fe/src/test/java/org/apache/impala/common/serialize/TreeFormatterTest.java
9 files changed, 1,197 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/79/12079/1
--
To view, visit http://gerrit.cloudera.org:8080/12079
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie3101c2708bf6cf4bec61af83a5db9b6d70ddd9c
Gerrit-Change-Number: 12079
Gerrit-PatchSet: 1
Gerrit-Owner: Paul Rogers <[email protected]>

Reply via email to