document limitspec in groupby, fixes #394

This commit is contained in:
fjy 2014-05-29 10:19:11 -07:00
parent 7be93a770a
commit fcc9bf4f26
2 changed files with 3 additions and 3 deletions

View File

@ -43,14 +43,14 @@ An example groupBy query object is shown below:
} }
``` ```
There are 9 main parts to a groupBy query: There are 11 main parts to a groupBy query:
|property|description|required?| |property|description|required?|
|--------|-----------|---------| |--------|-----------|---------|
|queryType|This String should always be "groupBy"; this is the first thing Druid looks at to figure out how to interpret the query|yes| |queryType|This String should always be "groupBy"; this is the first thing Druid looks at to figure out how to interpret the query|yes|
|dataSource|A String defining the data source to query, very similar to a table in a relational database, or a [DataSource](DataSource.html) structure.|yes| |dataSource|A String defining the data source to query, very similar to a table in a relational database, or a [DataSource](DataSource.html) structure.|yes|
|dimensions|A JSON list of dimensions to do the groupBy over|yes| |dimensions|A JSON list of dimensions to do the groupBy over|yes|
|orderBy|See [OrderBy](OrderBy.html).|no| |limitSpec|See [LimitSpec](LimitSpec.html).|no|
|having|See [Having](Having.html).|no| |having|See [Having](Having.html).|no|
|granularity|Defines the granularity of the query. See [Granularities](Granularities.html)|yes| |granularity|Defines the granularity of the query. See [Granularities](Granularities.html)|yes|
|filter|See [Filters](Filters.html)|no| |filter|See [Filters](Filters.html)|no|

View File

@ -2,7 +2,7 @@
layout: doc_page layout: doc_page
--- ---
# Sort groupBy Query Results # Sort groupBy Query Results
The orderBy field provides the functionality to sort and limit the set of results from a groupBy query. If you group by a single dimension and are ordering by a single metric, we highly recommend using [TopN Queries](TopNQuery.html) instead. The performance will be substantially better. Available options are: The limitSpec field provides the functionality to sort and limit the set of results from a groupBy query. If you group by a single dimension and are ordering by a single metric, we highly recommend using [TopN Queries](TopNQuery.html) instead. The performance will be substantially better. Available options are:
### DefaultLimitSpec ### DefaultLimitSpec