mirror of https://github.com/apache/druid.git
commit
5df92aff2c
|
@ -21,13 +21,13 @@ Duration granularities are specified as an exact duration in milliseconds and ti
|
||||||
|
|
||||||
They also support specifying an optional origin, which defines where to start counting time buckets from (defaults to 1970-01-01T00:00:00Z).
|
They also support specifying an optional origin, which defines where to start counting time buckets from (defaults to 1970-01-01T00:00:00Z).
|
||||||
|
|
||||||
```
|
```javascript
|
||||||
{"type": "duration", "duration": "7200000"}
|
{"type": "duration", "duration": "7200000"}
|
||||||
```
|
```
|
||||||
|
|
||||||
This chunks up every 2 hours.
|
This chunks up every 2 hours.
|
||||||
|
|
||||||
```
|
```javascript
|
||||||
{"type": "duration", "duration": "3600000", "origin": "2012-01-01T00:30:00Z"}
|
{"type": "duration", "duration": "3600000", "origin": "2012-01-01T00:30:00Z"}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -39,13 +39,13 @@ Period granularities are specified as arbitrary period combinations of years, mo
|
||||||
|
|
||||||
Time zone is optional (defaults to UTC). Origin is optional (defaults to 1970-01-01T00:00:00 in the given time zone).
|
Time zone is optional (defaults to UTC). Origin is optional (defaults to 1970-01-01T00:00:00 in the given time zone).
|
||||||
|
|
||||||
```
|
```javascript
|
||||||
{"type": "period", "period": "P2D", "timeZone": "America/Los_Angeles"}
|
{"type": "period", "period": "P2D", "timeZone": "America/Los_Angeles"}
|
||||||
```
|
```
|
||||||
|
|
||||||
This will bucket by two-day chunks in the Pacific timezone.
|
This will bucket by two-day chunks in the Pacific timezone.
|
||||||
|
|
||||||
```
|
```javascript
|
||||||
{"type": "period", "period": "P3M", "timeZone": "America/Los_Angeles", "origin": "2012-02-01T00:00:00-08:00"}
|
{"type": "period", "period": "P3M", "timeZone": "America/Los_Angeles", "origin": "2012-02-01T00:00:00-08:00"}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ The dataSource JSON field shown next identifies where to apply the query. In thi
|
||||||
"dataSource": "randSeq",
|
"dataSource": "randSeq",
|
||||||
```
|
```
|
||||||
|
|
||||||
The granularity JSON field specifies the bucket size for values. It could be a built-in time interval like "second", "minute", "fifteen_minute", "thirty_minute", "hour" or "day". It can also be an expression like `{"type": "period", "period":"PT6m"}` meaning "6 minute buckets". See [Granularities](Granularities.html) for more information on the different options for this field. In this example, it is set to the special value "all" which means [bucket all data points together into the same time bucket]()
|
The granularity JSON field specifies the bucket size for values. It could be a built-in time interval like "second", "minute", "fifteen_minute", "thirty_minute", "hour" or "day". It can also be an expression like `{"type": "period", "period":"PT6m"}` meaning "6 minute buckets". See [Granularities](Granularities.html) for more information on the different options for this field. In this example, it is set to the special value "all" which means bucket all data points together into the same time bucket.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
"granularity": "all",
|
"granularity": "all",
|
||||||
|
@ -133,7 +133,7 @@ Properties shared by all query types
|
||||||
|search|searchDimensions|Dimensions to apply the search query to. If not specified, it will search through all dimensions.|no|
|
|search|searchDimensions|Dimensions to apply the search query to. If not specified, it will search through all dimensions.|no|
|
||||||
|search|query|The query portion of the search query. This is essentially a predicate that specifies if something matches.|yes|
|
|search|query|The query portion of the search query. This is essentially a predicate that specifies if something matches.|yes|
|
||||||
|
|
||||||
Query Context
|
<a name="query-context"></a>Query Context
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|property |default | description |
|
|property |default | description |
|
||||||
|
|
Loading…
Reference in New Issue