EsTableService Class

弹性搜索服务.EsTableService(option)

枚举目录树结果

Fx构造函数

# new EsTableService(option)

Zondy.DataStore.ElasticSearch.EsTableService-根据数据库结构枚举目录,枚举库列表、表列表

参数:
名称 类型 属性 描述
option Object

属性键值对

path String <optional>

库名称

tableNames String <optional>

表名,多个用逗号分隔,如:时空库

作者:
  • 基础平台-潘卓然
See:

查看源代码 service/datastore/elasticsearch/EsTableService.js, line 4

Example
http://192.168.96.101:9091//datastore/rest/dataset/es/schema/{path}?
tableNames=sp_taxibj_200_2

成员变量

String

# indexName

库名称

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/EsTableService.js, line 29

String

# serviceUrl

时空聚类查询地址

Default Value:
  • /datastore/rest/dataset/es/schema/

查看源代码 service/datastore/elasticsearch/EsTableService.js, line 21

String

# tableNames

表名,多个用逗号分隔,如:时空库

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/EsTableService.js, line 37

方法

# query(onSuccess, onError)

查询函数,向服务器发送请求,返回geosjon格式数据

参数:
名称 类型 描述
onSuccess function

查询成功回调函数。

onError function

查询失败回调函数。

查看源代码 service/datastore/elasticsearch/EsTableService.js, line 46