code: function (sql, docs, users, queueAttrRecs, partitions, cols, policy, roles,
    userRoles, attrs, partitioner) {
    this._sql = sql;
    this._docs = docs;
    this._users = users;
    this._queueAttrRecs = queueAttrRecs;
    this._partitions = partitions;
    this._cols = cols;
    this._policy = policy;
    this._roles = roles;
    this._userRoles = userRoles;
    this._mainParts = [constants.LATEST, constants.RECENT, constants.ALL];
    this._clearCache();
    this._attrs = attrs;
    this._partitioner = partitioner;
  }
docs: TODO: remove unneeded params