mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
Unexport ValCount.Smaller
This commit is contained in:
parent
d7cebfa7c4
commit
ffde862679
1 changed files with 3 additions and 3 deletions
|
|
@ -267,7 +267,7 @@ func (e *executor) executeMin(ctx context.Context, index string, c *pql.Call, sh
|
|||
// Merge returned results at coordinating node.
|
||||
reduceFn := func(prev, v interface{}) interface{} {
|
||||
other, _ := prev.(ValCount)
|
||||
return other.Smaller(v.(ValCount))
|
||||
return other.smaller(v.(ValCount))
|
||||
}
|
||||
|
||||
result, err := e.mapReduce(ctx, index, shards, c, opt, mapFn, reduceFn)
|
||||
|
|
@ -1720,8 +1720,8 @@ func (vc *ValCount) add(other ValCount) ValCount {
|
|||
}
|
||||
}
|
||||
|
||||
// Smaller returns the smaller of the two ValCounts.
|
||||
func (vc *ValCount) Smaller(other ValCount) ValCount {
|
||||
// smaller returns the smaller of the two ValCounts.
|
||||
func (vc *ValCount) smaller(other ValCount) ValCount {
|
||||
if vc.Count == 0 || (other.Val < vc.Val && other.Count > 0) {
|
||||
return other
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue