[Courier] added source.get() and a stub for ._resolveIndexPattern()

This commit is contained in:
Spencer Alger 2014-02-18 09:26:59 -07:00
parent d71ff32a83
commit a46e0d44bb

View file

@ -62,6 +62,14 @@ define(function (require) {
* PUBLIC API
*****/
/**
* Get values from the state
* @param {string} name - The name of the property desired
*/
DataSource.prototype.get = function (name) {
return this._state[name];
};
/**
* fetch the field names for this DataSource
* @param {Function} cb
@ -156,5 +164,12 @@ define(function (require) {
return flatState;
};
DataSource.prototype._resolveIndexPattern = function (start, end) {
if (this._state.indexInterval) {
throw new Error('Not implemented');
}
return this._state.index;
};
return DataSource;
});