/**
  * ArithmeticPostAggregator constructor.
  *
  * @param string                                                 $name
  * @param string                                                 $fn
  * @param array|\Druid\Query\Component\PostAggregatorInterface[] $fields
  */
 public function __construct($name, $fn, array $fields)
 {
     parent::__construct(self::TYPE_ARITHMETIC);
     $this->name = $name;
     $this->fn = $fn;
     $this->fields = $fields;
 }
 /**
  * FieldAccessPostAggregator constructor.
  *
  * @param string $name
  * @param string $fieldName
  */
 public function __construct($name, $fieldName)
 {
     parent::__construct(self::TYPE_FIELD_ACCESS);
     $this->name = $name;
     $this->fieldName = $fieldName;
 }
 /**
  * LogicalFilter constructor.
  *
  * @param string                                         $type
  * @param array|\Druid\Query\Component\FilterInterface[] $fields
  */
 public function __construct($type, array $fields)
 {
     parent::__construct($type);
     $this->fields = $fields;
 }
 /**
  * NumericHaving constructor.
  *
  * @param string    $type
  * @param string    $aggregation
  * @param float|int $value
  */
 public function __construct($type, $aggregation, $value)
 {
     parent::__construct($type);
     $this->aggregation = $aggregation;
     $this->value = $value;
 }
 /**
  * DefaultLimitSpec constructor.
  *
  * @param int    $limit   Number of limit.
  * @param string $columns Columns for ordering.
  */
 public function __construct($limit, $columns)
 {
     parent::__construct(self::TYPE_DEFAULT);
     $this->limit = $limit;
     $this->columns = $columns;
 }
 /**
  * ConstantPostAggregator constructor.
  *
  * @param string    $name
  * @param float|int $value
  */
 public function __construct($name, $value)
 {
     parent::__construct(self::TYPE_CONSTANT);
     $this->name = $name;
     $this->value = $value;
 }
 /**
  * FilteredAggregator constructor.
  *
  * @param FilterInterface     $filter
  * @param AggregatorInterface $aggregator
  */
 public function __construct(FilterInterface $filter, AggregatorInterface $aggregator)
 {
     parent::__construct(self::TYPE_FILTERED);
     $this->filter = $filter;
     $this->aggregator = $aggregator;
 }
 /**
  * CountAggregator constructor.
  *
  * @param $name
  */
 public function __construct($name)
 {
     parent::__construct(self::TYPE_COUNT);
     $this->name = $name;
 }
 /**
  * AbstractArithmeticalAggregator constructor.
  *
  * @param string $type
  * @param string $name
  * @param string $fieldName
  */
 public function __construct($type, $name, $fieldName)
 {
     parent::__construct($type);
     $this->name = $name;
     $this->fieldName = $fieldName;
 }
Esempio n. 10
0
 /**
  * NotFilter constructor.
  *
  * @param FilterInterface $field
  */
 public function __construct(FilterInterface $field)
 {
     parent::__construct(FilterInterface::TYPE_LOGICAL_NOT);
     $this->field = $field;
 }
 /**
  * PeriodGranularity constructor.
  *
  * @param string $period
  * @param string $timeZone
  */
 public function __construct($period, $timeZone)
 {
     parent::__construct(self::TYPE_PERIOD);
     $this->period = $period;
     $this->timeZone = $timeZone;
 }
Esempio n. 12
0
 /**
  * LogicalHaving constructor.
  *
  * @param string                                         $type
  * @param array|\Druid\Query\Component\HavingInterface[] $havingSpecs
  */
 public function __construct($type, array $havingSpecs)
 {
     parent::__construct($type);
     $this->havingSpecs = $havingSpecs;
 }
Esempio n. 13
0
 /**
  * InFilter constructor.
  *
  * @param string $dimension
  * @param string $values
  */
 public function __construct($dimension, $values)
 {
     parent::__construct(FilterInterface::TYPE_LOGICAL_IN);
     $this->dimension = $dimension;
     $this->values = $values;
 }
Esempio n. 14
0
 /**
  * SelectorFilter constructor.
  *
  * @param string $dimension
  * @param string $value
  */
 public function __construct($dimension, $value)
 {
     parent::__construct(self::TYPE_SELECTOR);
     $this->dimension = $dimension;
     $this->value = $value;
 }
 /**
  * DefaultDimension constructor.
  *
  * @param string $dimension
  * @param string $outputName
  */
 public function __construct($dimension, $outputName)
 {
     $this->dimension = $dimension;
     $this->outputName = $outputName;
     parent::__construct(self::TYPE_DEFAULT);
 }
 /**
  * SimpleGranularity constructor.
  *
  * @param string $granularity
  */
 public function __construct($granularity)
 {
     $this->granularity = $granularity;
     parent::__construct($granularity);
 }