Skip to content
Snippets Groups Projects
Commit bafee67e authored by Jacky Li's avatar Jacky Li Committed by Michael Armbrust
Browse files

[SQL] add @group tab in limit() and count()

group tab is missing for scaladoc

Author: Jacky Li <jacky.likun@gmail.com>

Closes #3458 from jackylk/patch-7 and squashes the following commits:

0121a70 [Jacky Li] add @group tab in limit() and count()
parent 5db8dcaf
No related branches found
No related tags found
No related merge requests found
......@@ -225,6 +225,8 @@ class SchemaRDD(
* {{{
* schemaRDD.limit(10)
* }}}
*
* @group Query
*/
def limit(limitNum: Int): SchemaRDD =
new SchemaRDD(sqlContext, Limit(Literal(limitNum), logicalPlan))
......@@ -355,6 +357,8 @@ class SchemaRDD(
* Return the number of elements in the RDD. Unlike the base RDD implementation of count, this
* implementation leverages the query optimizer to compute the count on the SchemaRDD, which
* supports features such as filter pushdown.
*
* @group Query
*/
@Experimental
override def count(): Long = aggregate(Count(Literal(1))).collect().head.getLong(0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment