public class FieldStatisticService
extends java.lang.Object
数据集字段信息统计服务类。
数据集字段信息统计是指对数据集中具体字段的数据进行统计,统计类型包括字段的平均值、最大值、最小值等等,详细参见StatisticMode类。 该类负责与服务端完成异步通信:将客户端指定的数据集字段信息统计参数传递给服务端,并获取服务端返回的结果信息,从而实现获取相应字段统计结果的操作。
限定符和类型 | 类和说明 |
---|---|
static class |
FieldStatisticService.FieldStatisticEventListener
处理数据集字段统计结果的监听器抽象类。
|
构造器和说明 |
---|
FieldStatisticService(java.lang.String url)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
FieldStatisticResult |
getLastResult()
返回数据集字段统计结果。
|
void |
process(FieldParameters parameters, FieldStatisticService.FieldStatisticEventListener listener)
根据数据集字段统计服务地址与服务端完成异步通讯,即发送分析参数,并通过实现FieldStatisticEventListener监听器处理查询结果。
|
public FieldStatisticService(java.lang.String url)
构造函数。
url
- 数据服务地址。如 http://ServerIP:8090/iserver/services/data-world/rest/data。public void process(FieldParameters parameters, FieldStatisticService.FieldStatisticEventListener listener)
根据数据集字段统计服务地址与服务端完成异步通讯,即发送分析参数,并通过实现FieldStatisticEventListener监听器处理查询结果。
parameters
- 数据集字段统计参数信息。listener
- 处理查询结果的FieldStatisticEventListener监听器。public FieldStatisticResult getLastResult()
返回数据集字段统计结果。