diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:31:33 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:31:33 -0400 |
commit | 150f94f051128f367bc89f6b7e5f57eb2a69fc62 (patch) | |
tree | 181f454813b310ee97385058c6c6f2e3f34d5fd8 /vendor/ruflin/elastica/lib/Elastica/Aggregation/DateHistogram.php | |
parent | 7e85254903c7c0cb49e381f16b18441ea7b058cc (diff) | |
parent | 80f7dc77d430774192b929d780f96260066df2ee (diff) |
Merge commit '80f7dc'
# Conflicts:
# extensions/ArchInterWiki.sql
Diffstat (limited to 'vendor/ruflin/elastica/lib/Elastica/Aggregation/DateHistogram.php')
-rw-r--r-- | vendor/ruflin/elastica/lib/Elastica/Aggregation/DateHistogram.php | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/vendor/ruflin/elastica/lib/Elastica/Aggregation/DateHistogram.php b/vendor/ruflin/elastica/lib/Elastica/Aggregation/DateHistogram.php deleted file mode 100644 index 889fa429..00000000 --- a/vendor/ruflin/elastica/lib/Elastica/Aggregation/DateHistogram.php +++ /dev/null @@ -1,82 +0,0 @@ -<?php - -namespace Elastica\Aggregation; - -/** - * Class DateHistogram - * @package Elastica\Aggregation - * @link http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-aggregations-bucket-datehistogram-aggregation.html - */ -class DateHistogram extends Histogram -{ - /** - * Set pre-rounding based on interval - * @param string $preZone - * @return DateHistogram - */ - public function setPreZone($preZone) - { - return $this->setParam("pre_zone", $preZone); - } - - /** - * Set post-rounding based on interval - * @param string $postZone - * @return DateHistogram - */ - public function setPostZone($postZone) - { - return $this->setParam("post_zone", $postZone); - } - - /** - * Set pre-zone adjustment for larger time intervals (day and above) - * @param string $adjust - * @return DateHistogram - */ - public function setPreZoneAdjustLargeInterval($adjust) - { - return $this->setParam("pre_zone_adjust_large_interval", $adjust); - } - - /** - * Adjust for granularity of date data - * @param int $factor set to 1000 if date is stored in seconds rather than milliseconds - * @return DateHistogram - */ - public function setFactor($factor) - { - return $this->setParam("factor", $factor); - } - - /** - * Set the offset for pre-rounding - * @param string $offset "1d", for example - * @return DateHistogram - */ - public function setPreOffset($offset) - { - return $this->setParam("pre_offset", $offset); - } - - /** - * Set the offset for post-rounding - * @param string $offset "1d", for example - * @return DateHistogram - */ - public function setPostOffset($offset) - { - return $this->setParam("post_offset", $offset); - } - - /** - * Set the format for returned bucket key_as_string values - * @link http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-aggregations-bucket-daterange-aggregation.html#date-format-pattern - * @param string $format see link for formatting options - * @return DateHistogram - */ - public function setFormat($format) - { - return $this->setParam("format", $format); - } -}
\ No newline at end of file |