public class GroupedTable extends Object
Constructor and Description |
---|
GroupedTable(Table table,
scala.collection.Seq<Expression> groupKey) |
Modifier and Type | Method and Description |
---|---|
scala.collection.Seq<Expression> |
groupKey() |
Table |
select(scala.collection.Seq<Expression> fields)
Performs a selection operation on a grouped table.
|
Table |
select(String fields)
Performs a selection operation on a grouped table.
|
Table |
table() |
public GroupedTable(Table table, scala.collection.Seq<Expression> groupKey)
public Table table()
public scala.collection.Seq<Expression> groupKey()
public Table select(scala.collection.Seq<Expression> fields)
Example:
tab.groupBy('key).select('key, 'value.avg + " The average" as 'average)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.