Clone
Murtadha Makki Al Hubail
committed
on 22 May 19
[NO ISSUE][API] Return Async Query Results As JSON
- user model changes: yes
- storage format changes: no
- interface changes: yes

Details:… Show more
[NO ISSUE][API] Return Async Query Results As JSON

- user model changes: yes

- storage format changes: no

- interface changes: yes

Details:

- Add ResultMetadata that can hold metadata about a job's

 result.

- Add required CC functions to get ResultMetadata.

- Add IJobResultCallback that is called when a job's result

 is written successfully.

- Calculate a job's processed objects on the job completion.

- Calculate a job's duration on the job completion.

- Use the async query request format when serving the result

 from QueryResultApiServlet.

- Return a proper JSON envelop in QueryResultApiServlet

 which includes the results as well as metrics fields.

- Add test case for returning JSON response for async

 query.

Change-Id: Ic4812a14925099a677f9e77a0040f881d2600724

Reviewed-on: https://asterix-gerrit.ics.uci.edu/3401

Contrib: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Till Westmann <tillw@apache.org>

Show less