MCPcopy
hub / github.com/redis/go-redis / GroupBy

Method GroupBy

search_builders.go:283–288  ·  view source on GitHub ↗

GroupBy adds a new GROUPBY <fields...> step.

(fields ...interface{})

Source from the content-addressed store, hash-verified

281
282// GroupBy adds a new GROUPBY <fields...> step.
283func (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.

Callers 2

withBuilderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected