Rename Histogram.dataview by Histogram.histogramImplementation
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user