GroupBy adds a new GROUPBY <fields...> step.
(fields ...interface{})
| 281 | |
| 282 | // GroupBy adds a new GROUPBY <fields...> step. |
| 283 | func (b *AggregateBuilder) GroupBy(fields ...interface{}) *AggregateBuilder { |
| 284 | b.options.Steps = append(b.options.Steps, FTAggregateStep{ |
| 285 | GroupBy: &FTAggregateGroupBy{Fields: fields}, |
| 286 | }) |
| 287 | return b |
| 288 | } |
| 289 | |
| 290 | // Reduce adds a REDUCE <fn> [<#args> <args...>] clause to the last step, |
| 291 | // which must be a GROUPBY. If it is not, Run will return an error. |
no outgoing calls
no test coverage detected