Service to classify the data into hierarchical entities

post

/spatialviewer/api/v1/categorizationJob

This service provides a way to classify the data into hierarchical entities. In a given set of catalogs with a defined level of boundaries such as continents, countries and states, it is possible to join a record of the user data to a record of each level of the hierarchy data set. For example it can be used to show all the twitters from specified HDFS files in the hierarchy World Continents/World Countries/World State Provinces/World Cities.

Request

Supported Media Types
  • application/json
Query Parameters
asynchronous
Type: boolean
if true the operation is runned asynchronously.
Body Parameter
Job details
Root Schema : CategorizationJobInfo
Type: object

Response

Supported Media Types
  • application/json
200 Response
Successful request.

The response contains the location of the results in HDFS.

Additionally When the job finishes the results will be saved in the folder categorization_results contained in the SpatialViewer local working directory (see SpatialViewer configuration).
Body
Root Schema : CategorizationJobResponse
Type: object
202 Response
accepted asynchronous request.

The response contains the resource manager web application URL to track the job.

Additionally When the job finishes the results will be saved in the folder categorization_results contained in the SpatialViewer local working directory (see SpatialViewer configuration).
Body
Root Schema : AsyncCategorizationJobResponse
Type: object