lib/query.js
function Query(client, rawQuery) {
  if (client) {
    /**
     * If set, query is attached to given client instance
     *
     * @private
     * @type {Druid|Client}
     */
    this.client = client
  }


  /**
   * Actual query object
   *
   * @private
   */
  this._query = {
    queryType: this._queryType
  }

  if (rawQuery) {
    // we do not want to change query type, aren't we?
    this._queryType && delete rawQuery.queryType

    assign(this._query, rawQuery)
  }
}
function Query(client, rawQuery) {
  if (client) {
    /**
     * If set, query is attached to given client instance
     *
     * @private
     * @type {Druid|Client}
     */
    this.client = client
  }


  /**
   * Actual query object
   *
   * @private
   */
  this._query = {
    queryType: this._queryType
  }

  if (rawQuery) {
    // we do not want to change query type, aren't we?
    this._queryType && delete rawQuery.queryType

    assign(this._query, rawQuery)
  }
}
function Query ( client , rawQuery ) { if ( client ) { /**
     * If set, query is attached to given client instance
     *
     * @private
     * @type {Druid|Client}
     */ this . client = client } /**
   * Actual query object
   *
   * @private
   */ this . _query = { queryType : this . _queryType } if ( rawQuery ) { // we do not want to change query type, aren't we? this . _queryType && delete rawQuery . queryType assign ( this . _query , rawQuery ) } }
Druid query representation

@class
@constructor
@param {Druid|Client} client Client instance
@param {object} [rawQuery] Raw query data
Druid query representation