public abstract class QueryService
extends java.lang.Object
查询服务基类。
范围、距离、几何、SQL 等查询服务类均继承了该类。
限定符和类型 | 字段和说明 |
---|---|
protected java.lang.String |
baseUrl
服务地址。
|
构造器和说明 |
---|
QueryService() |
限定符和类型 | 方法和说明 |
---|---|
protected com.supermap.android.maps.query.QueryParameterSet |
getQueryParameterSet(QueryParameters parameters) |
protected abstract java.lang.String |
getVariablesJson(QueryParameters parameters) |
void |
process(QueryParameters parameters, QueryEventListener listener)
根据地图服务地址与服务端完成异步通讯,即发送查询参数,并通过实现QueryEventListener监听器处理查询结果。
|
void |
setTimeout(int timeout)
用户自定义超时时间。
|
public void process(QueryParameters parameters, QueryEventListener listener)
根据地图服务地址与服务端完成异步通讯,即发送查询参数,并通过实现QueryEventListener监听器处理查询结果。
parameters
- 查询参数listener
- 处理查询结果的QueryEventListener监听器。public void setTimeout(int timeout)
用户自定义超时时间。
timeout
- 用户自定义超时时间。若用户不设置,则使用默认超时间为5秒。0代表无限,即代表不设置超时限制。单位默认为秒。protected abstract java.lang.String getVariablesJson(QueryParameters parameters)
protected com.supermap.android.maps.query.QueryParameterSet getQueryParameterSet(QueryParameters parameters)