Skip to content

Commit 291ba76

Browse files
committed
Removed GroupBy and GroupedMapReduce
1 parent cfeb2a5 commit 291ba76

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

query_aggregation.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,6 @@ func (t RqlTerm) Distinct() RqlTerm {
3434
return newRqlTermFromPrevVal(t, "Distinct", p.Term_DISTINCT, []interface{}{}, map[string]interface{}{})
3535
}
3636

37-
// Partition the sequence into groups based on the grouping function. The elements
38-
// of each group are then mapped using the mapping function and reduced using the
39-
// reduction function.
40-
func (t RqlTerm) GroupedMapReduce(grouping, mapping, reduction, base interface{}) RqlTerm {
41-
return newRqlTermFromPrevVal(
42-
t,
43-
"GroupedMapReduce",
44-
p.Term_GROUPED_MAP_REDUCE,
45-
[]interface{}{funcWrap(grouping), funcWrap(mapping), funcWrap(reduction)},
46-
map[string]interface{}{"base": base},
47-
)
48-
}
49-
50-
// Groups elements by the values of the given attributes and then applies the given
51-
// reduction. Though similar to GroupedMapReduce, GroupBy takes a standardized
52-
// object for specifying the reduction. Can be used with a number of predefined
53-
// common reductions
54-
func (t RqlTerm) GroupBy(collector interface{}, args ...interface{}) RqlTerm {
55-
return newRqlTermFromPrevVal(t, "GroupBy", p.Term_GROUPBY, []interface{}{args, collector}, map[string]interface{}{})
56-
}
57-
5837
//Returns whether or not a sequence contains all the specified values, or if
5938
//functions are provided instead, returns whether or not a sequence contains
6039
//values matching all the specified functions.

0 commit comments

Comments
 (0)