Rename Histogram.dataview by Histogram.histogramImplementation

This commit is contained in:
Daniel García Aubert
2017-09-11 15:34:42 +02:00
parent ec23bfc79b
commit 4f33e0d794
+7 -7
View File
@@ -11,7 +11,7 @@ module.exports = class Histogram {
this.options = options || {};
this.queries = queries;
this.dataview = this._getHistogramImplementation();
this.histogramImplementation = this._getHistogramImplementation();
}
_getHistogramImplementation (override) {
@@ -41,8 +41,8 @@ module.exports = class Histogram {
}
getResult (psql, override, callback) {
this.dataview = this._getHistogramImplementation(override);
this.dataview.getResult(psql, override, callback);
this.histogramImplementation = this._getHistogramImplementation(override);
this.histogramImplementation.getResult(psql, override, callback);
}
// In order to keep previous behaviour with overviews,
@@ -50,18 +50,18 @@ module.exports = class Histogram {
// the concrete overview implementation
sql (psql, override, callback) {
this.dataview.sql(psql, override, callback);
this.histogramImplementation.sql(psql, override, callback);
}
format (result, override) {
return this.dataview.format(result, override);
return this.histogramImplementation.format(result, override);
}
getType () {
return this.dataview.getType();
return this.histogramImplementation.getType();
}
toString () {
return this.dataview.toString();
return this.histogramImplementation.toString();
}
};