reconstructTracksJob


URI

<reconstructtracks_uri>/{jobID}[.<format>]

支持的方法

GETHEAD

父资源

reconstructTracks

介绍

reconstructtracksJob 资源表示一个轨迹重建作业。通过对 reconstructTracksJob 资源执行 GET 请求,可以获取一个轨迹重建作业详细配置信息,可通过 ID 号({jobID}) 来获取。

支持的方法:

支持的表述格式:RJSON、JSON、HTML、XML。

资源层次

HTTP 请求方法

对如下 URI 执行 HTTP 请求,以 rjson 输出格式为例加以说明,其中,supermapiserver 是服务器名。

http://supermapiserver:8090/iserver/services/distributedanalyst/rest/v1/jobs/spatialanalyst/reconstructtracks/{jobID}.rjson

GET 请求

获取一个轨迹重建作业详细配置信息

响应结构

对 reconstructTracksJob 资源执行 GET 请求,返回操作结果的结构如下:  

字段 类型 说明
id String 应用ID。
state SparkJobState 任务状态。包括执行状态、起止时间、耗时等。
setting SparkJobSetting 列举当前轨迹重建作业任务的详细信息。

响应示例

对 reconstructTracksJob 资源执行 GET 请求:http://supermapiserver:8090/iserver/services/distributedanalyst/rest/v1/jobs/spatialanalyst/reconstructtracks/3c5de7bb_999c_4d24_88f8_64b97b83621a.rjson ,则返回的rjson表述结果如下:

{

    "id": "3c5de7bb_999c_4d24_88f8_64b97b83621a",

    "state": {

        "errorStackTrace": null,

        "endState": true,

        "startTime": 1524902348682,

        "endTime": 1524902386222,

        "publisherelapsedTime": 37095,

        "runState": "FINISHED",

        "errorMsg": null,

        "elapsedTime": 187

    },

    "setting": {

        "output": {

            "outputPath": null,

            "featureRDD": {

                "org$apache$spark$rdd$RDD$$evidence$1": {}

            },

            "datasetName": "analystResult",

            "buildPyramid": false,

            "type": "RDD"

        },

        "args": null,

        "input": {

            "datasetName": "samples_processing_reconstructTracks_P",

            "numSlices": 36,

            "specField": "GPSTIME",

            "datasetInfo": {

                "fieldInfos": [

                    {

                        "isRequired": true,

                        "defaultValue": "",

                        "name": "SmID",

                        "caption": "SmID",

                        "type": "INT32",

                        "maxLength": 4,

                        "isZeroLengthAllowed": true,

                        "isSystemField": true

                    },

                    {

                        "isRequired": true,

                        "defaultValue": "0",

                        "name": "SmX",

                        "caption": "SmX",

                        "type": "DOUBLE",

                        "maxLength": 8,

                        "isZeroLengthAllowed": true,

                        "isSystemField": true

                    },

                    {

                        "isRequired": true,

                        "defaultValue": "0",

                        "name": "SmY",

                        "caption": "SmY",

                        "type": "DOUBLE",

                        "maxLength": 8,

                        "isZeroLengthAllowed": true,

                        "isSystemField": true

                    },

                    {

                        "isRequired": false,

                        "defaultValue": "1",

                        "name": "SmLibTileID",

                        "caption": "SmLibTileID",

                        "type": "INT32",

                        "maxLength": 4,

                        "isZeroLengthAllowed": true,

                        "isSystemField": true

                    },

                    {

                        "isRequired": true,

                        "defaultValue": "0",

                        "name": "SmUserID",

                        "caption": "SmUserID",

                        "type": "INT32",

                        "maxLength": 4,

                        "isZeroLengthAllowed": true,

                        "isSystemField": false

                    },

                    {

                        "isRequired": false,

                        "defaultValue": "0",

                        "name": "SmGeometrySize",

                        "caption": "SmGeometrySize",

                        "type": "INT32",

                        "maxLength": 4,

                        "isZeroLengthAllowed": true,

                        "isSystemField": true

                    },

                    {

                        "isRequired": true,

                        "defaultValue": "-1",

                        "name": "SmGeoPosition",

                        "caption": "SmGeoPosition",

                        "type": "INT64",

                        "maxLength": 8,

                        "isZeroLengthAllowed": true,

                        "isSystemField": true

                    },

                    {

                        "isRequired": false,

                        "defaultValue": "",

                        "name": "ISSI",

                        "caption": "ISSI",

                        "type": "WTEXT",

                        "maxLength": 18,

                        "isZeroLengthAllowed": true,

                        "isSystemField": false

                    },

                    {

                        "isRequired": false,

                        "defaultValue": "",

                        "name": "X",

                        "caption": "X",

                        "type": "WTEXT",

                        "maxLength": 22,

                        "isZeroLengthAllowed": true,

                        "isSystemField": false

                    },

                    {

                        "isRequired": false,

                        "defaultValue": "",

                        "name": "Y",

                        "caption": "Y",

                        "type": "WTEXT",

                        "maxLength": 21,

                        "isZeroLengthAllowed": true,

                        "isSystemField": false

                    },

                    {

                        "isRequired": false,

                        "defaultValue": "",

                        "name": "GPSTIME",

                        "caption": "GPSTIME",

                        "type": "DATETIME",

                        "maxLength": 8,

                        "isZeroLengthAllowed": true,

                        "isSystemField": false

                    }

                ],

                "epsgCode": 4326,

                "datasetName": "reconstructTracks_P",

                "bounds": "Left=111.52128333,Bottom=22.14568019,Right=114.70129967,Top=23.50906849",

                "available": true,

                "name": "samples_processing_reconstructTracks_P",

                "readOnly": false,

                "datasetType": "POINT",

                "type": "UDB",

                "url": "F:\\01_package\\20180428\\ProcessingData\\processing.udb"

            }

        },

        "DEFAULT_MASTER_ADRESS": "local[*] ",

        "referToken": "nqEk7hOen-7NBidP7O2sqAvQTeRHUYgswUyUaNT-sV72ePCYqPkYWZlT2ZjrTa2J9UiyKK2znkEbXkwgUV-PoQ..",

        "mainClass": null,

        "sparkLogFile": null,

        "appName": null,

        "analyst": {

            "timeSplitUnit": "DAY",

            "trackFields": [

                "ISSI"

            ],

            "timeSplit": 2,

            "summaryFields": [

                "ISSI"

            ],

            "summaryStatisticModes": "MIN"

        },

        "contextSetting": null,

        "serviceInfo": {

            "targetDataPath": null,

            "targetServiceInfos": [

                {

                    "serviceType": "RESTMAP",

                    "serviceAddress": "http://supermapiserver:8090/iserver/services/distributedanalyst/rest/v1/jobs/spatialanalyst/reconstructtracks/3c5de7bb_999c_4d24_88f8_64b97b83621a"

                }

            ]

        },

        "referServicesAddress": "http://supermapiserver:8090/iserver"

    }

}

HEAD 请求

返回跟 GET 请求一样的 HTTP 响应头,但是没有响应实体。可以在不必传输整个响应内容的情况下,获取包含在响应消息头中的元数据信息。元数据信息包括媒体类型,字符编码,压缩编码,实体内容长度等。

HEAD 请求可以用来判断 reconstructtracksJob 资源是否存在,或者客户端是否有权限访问 reconstructtracksJob 资源。通过对加.<format>的 URI 执行 HEAD 请求,还可以快速判断 reconstructtracksJob 资源是否支持<format>格式的表述。

请参见