Skip to content

Commit d75e73f

Browse files
committed
change name: BigQuery -> Insight
1 parent e776262 commit d75e73f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

lib/insight.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55

66
/**
77
* @namespace 包含了使用了 LeanCloud
8-
* <a href='/docs/bigquery_guide.html'>离线数据分析功能</a>的函数。
8+
* <a href='/docs/leanInsight_guide.html'>离线数据分析功能</a>的函数。
99
* <p><strong><em>
1010
* 部分函数仅在云引擎运行环境下有效。
1111
* </em></strong></p>
1212
*/
13-
AV.BigQuery = AV.BigQuery || {};
13+
AV.Insight = AV.Insight || {};
1414

15-
_.extend(AV.BigQuery, /** @lends AV.BigQuery */ {
15+
_.extend(AV.Insight, /** @lends AV.Insight */ {
1616

1717
/**
18-
* 开始一个 BigQuery 任务。结果里将返回 Job id,你可以拿得到的 id 使用
19-
* AV.BigQuery.JobQuery 查询任务状态和结果。
18+
* 开始一个 Insight 任务。结果里将返回 Job id,你可以拿得到的 id 使用
19+
* AV.Insight.JobQuery 查询任务状态和结果。
2020
* @param {Object} jobConfig 任务配置的 JSON 对象,例如:<code><pre>
2121
* { "sql" : "select count(*) as c,gender from _User group by gender",
2222
* "saveAs": {
@@ -42,7 +42,7 @@
4242
jobConfig: jobConfig,
4343
appId: AV.applicationId
4444
}
45-
var request = AV._request("bigquery", 'jobs', null, 'POST',
45+
var request = AV._request("insight", 'jobs', null, 'POST',
4646
AV._encode(data, null, true));
4747

4848
return request.then(function(resp) {
@@ -51,26 +51,26 @@
5151
},
5252

5353
/**
54-
* 监听 BigQuery 任务事件,目前仅支持 end 事件,表示任务完成。
54+
* 监听 Insight 任务事件,目前仅支持 end 事件,表示任务完成。
5555
* <p><strong><em>
5656
* 仅在云引擎运行环境下有效。
5757
* </em></strong></p>
5858
* @param {String} event 监听的事件,目前仅支持 'end' ,表示任务完成
5959
* @param {Function} 监听回调函数,接收 (err, id) 两个参数,err 表示错误信息,
60-
* id 表示任务 id。接下来你可以拿这个 id 使用AV.BigQuery.JobQuery 查询任务状态和结果。
60+
* id 表示任务 id。接下来你可以拿这个 id 使用AV.Insight.JobQuery 查询任务状态和结果。
6161
*
6262
*/
6363
on: function(event, cb) {
6464
}
6565
});
6666

6767
/**
68-
* 创建一个对象,用于查询 BigQuery 任务状态和结果。
68+
* 创建一个对象,用于查询 Insight 任务状态和结果。
6969
* @class
7070
* @param {String} id 任务 id
7171
* @since 0.5.5
7272
*/
73-
AV.BigQuery.JobQuery = function(id, className) {
73+
AV.Insight.JobQuery = function(id, className) {
7474
if(!id) {
7575
throw new Error('Please provide the job id.');
7676
}
@@ -80,7 +80,7 @@
8080
this._limit = 100;
8181
};
8282

83-
AV.BigQuery.JobQuery.prototype = {
83+
AV.Insight.JobQuery.prototype = {
8484

8585
/**
8686
* Sets the number of results to skip before returning any results.
@@ -125,7 +125,7 @@
125125
limit: this._limit
126126
};
127127

128-
var request = AV._request("bigquery", 'jobs', this.id, "GET",
128+
var request = AV._request("insight", 'jobs', this.id, "GET",
129129
params);
130130
var self = this;
131131
return request.then(function(response) {

0 commit comments

Comments
 (0)