2016-06-01 16:39:01 +08:00
|
|
|
'use strict';
|
|
|
|
|
2016-06-02 18:26:20 +08:00
|
|
|
var util = require('util');
|
|
|
|
var JobStateMachine = require('../job_state_machine');
|
2016-06-01 16:39:01 +08:00
|
|
|
|
|
|
|
function QueryBase(index) {
|
2016-06-02 18:26:20 +08:00
|
|
|
JobStateMachine.call(this);
|
|
|
|
|
2016-06-01 16:39:01 +08:00
|
|
|
this.index = index;
|
|
|
|
}
|
2016-06-02 18:26:20 +08:00
|
|
|
util.inherits(QueryBase, JobStateMachine);
|
2016-06-01 16:39:01 +08:00
|
|
|
|
|
|
|
module.exports = QueryBase;
|
|
|
|
|
|
|
|
// should be implemented
|
|
|
|
QueryBase.prototype.setStatus = function () {
|
|
|
|
throw new Error('Unimplemented method');
|
|
|
|
};
|
|
|
|
|
|
|
|
// should be implemented
|
|
|
|
QueryBase.prototype.getNextQuery = function () {
|
|
|
|
throw new Error('Unimplemented method');
|
|
|
|
};
|
|
|
|
|
|
|
|
QueryBase.prototype.hasNextQuery = function (job) {
|
|
|
|
return !!this.getNextQuery(job);
|
|
|
|
};
|