/* * Filter classes for rrdFile * They implement the same interface, but changing the content * * Part of the javascriptRRD package * Copyright (c) 2009 Frank Wuerthwein, fkw@ucsd.edu * * Original repository: http://javascriptrrd.sourceforge.net/ * * MIT License [http://www.opensource.org/licenses/mit-license.php] * */ /* * All filter classes must implement the following interface: * getMinStep() * getLastUpdate() * getNrRRAs() * getRRAInfo(rra_idx) * getFilterRRA(rra_idx) * getName() * * Where getFilterRRA returns an object implementing the following interface: * getIdx() * getNrRows() * getStep() * getCFName() * getEl(row_idx) * getElFast(row_idx) * */ // ================================================================ // Filter out a subset of DSs (identified either by idx or by name) // Internal function RRDRRAFilterDS(rrd_rra,ds_list) { this.rrd_rra=rrd_rra; this.ds_list=ds_list; } RRDRRAFilterDS.prototype.getIdx = function() {return this.rrd_rra.getIdx();} RRDRRAFilterDS.prototype.getNrRows = function() {return this.rrd_rra.getNrRows();} RRDRRAFilterDS.prototype.getNrDSs = function() {return this.ds_list.length;} RRDRRAFilterDS.prototype.getStep = function() {return this.rrd_rra.getStep();} RRDRRAFilterDS.prototype.getCFName = function() {return this.rrd_rra.getCFName();} RRDRRAFilterDS.prototype.getEl = function(row_idx,ds_idx) { if ((ds_idx>=0) && (ds_idx=0) && (ds_idx=0) && (idx=0) && (ds_idx=0) && (ds_idx=0) && (idx=0) && (idx=0) && (idx