AbleCloud PHP SDK
1.8.x
PHP SDK of AbleCloud API
|
Public 成员函数 | |
__construct ($name, $version, $context) | |
collection ($name) | |
timeframe ($frame) | |
timeInterval ($interval) | |
objectFilters ($aggFilters) | |
filters ($aggFilters) | |
groupBy ($properties) | |
orderBy ($property, $ascend) | |
execute () | |
![]() | |
__construct ($name, $version, $context) | |
getName () | |
getVersion () | |
getContext () | |
getLastError () | |
Protected 成员函数 | |
getParamInArray () | |
![]() | |
resetLastError ($errCode=0, $errMessage='') | |
AbleCloud数据分析服务的数据查询类方法的基类。
ACQEReadInterface::__construct | ( | $name, | |
$version, | |||
$context | |||
) |
构造函数。
$name | string AbleCloud数据分析服务的名字。 |
$version | int AbleCloud数据分析服务的主版本号。 |
$context | ACContext 表示访问该远程服务所依赖的环境信息。 |
ACQEReadInterface::collection | ( | $name | ) |
|
abstract |
执行数据分析查询。
ACQEReadInterface::filters | ( | $aggFilters | ) |
|
protected |
取数组格式的查询参数。
ACQEReadInterface::groupBy | ( | $properties | ) |
设置group_by参数。可选参数。
$properties | array 指定group_by所依赖的属性列(可以是多个),以及每个属性列的性质,如:array(array('province', 'actor'), array('gender', 'collection'))。 参数$properties是一个数组,数组的每个元素是一个由两个字符串组成的数组。由这两个字符串组成的数组可描述一个属性列: 第一个字符串是属性列的名字;第二个字符串标记属性列的性质——actor,object,phone或者collection(缺省值)。 |
ACQEReadInterface::objectFilters | ( | $aggFilters | ) |
ACQEReadInterface::orderBy | ( | $property, | |
$ascend | |||
) |
设置order_by参数。可选参数。
$property | string 用来排序的属性列的名字。符号“::”表示依据聚合函数的结果排序。 |
$ascend | bool 为TRUE时表示按升序排序,否则表示按降序排序。 |
ACQEReadInterface::timeframe | ( | $frame | ) |
ACQEReadInterface::timeInterval | ( | $interval | ) |