removed debugging code'

This commit is contained in:
Todd Gruben 2016-02-17 13:23:30 -06:00
parent e1eca36a9d
commit a74d826b41
2 changed files with 0 additions and 8 deletions

View file

@ -182,13 +182,10 @@ func encodeAttr(key string, value interface{}) *internal.Attr {
case string:
pb.StringValue = proto.String(value)
case float64:
fmt.Println("A")
pb.UintValue = proto.Uint64(uint64(value))
case uint64:
fmt.Println("b")
pb.UintValue = proto.Uint64(value)
case int64:
fmt.Println("c")
pb.UintValue = proto.Uint64(uint64(value))
case bool:
pb.BoolValue = proto.Bool(value)

View file

@ -7,7 +7,6 @@ import (
"io/ioutil"
"log"
"os"
"reflect"
"sort"
"strings"
"sync"
@ -385,8 +384,6 @@ func (f *Fragment) TopN(n int, src *Bitmap, field string, fieldValues []interfac
filters = make(map[interface{}]struct{})
for _, v := range fieldValues {
filters[v] = struct{}{}
fmt.Println("B:", reflect.TypeOf(v))
}
}
@ -403,7 +400,6 @@ func (f *Fragment) TopN(n int, src *Bitmap, field string, fieldValues []interfac
// Apply filter, if set.
if filters != nil {
attr, err := f.BitmapAttrStore.Attrs(bitmapID)
fmt.Println("C:", reflect.TypeOf(attr), attr)
if err != nil {
return nil, err
} else if attr == nil {
@ -411,7 +407,6 @@ func (f *Fragment) TopN(n int, src *Bitmap, field string, fieldValues []interfac
} else if attrValue := attr[field]; attrValue == nil {
continue
} else if _, ok := filters[attrValue]; !ok {
fmt.Println("A:", reflect.TypeOf(attrValue))
continue
}
}