5 vals map[int][]interface{}
10 func (it *Iterator) Value() interface{} {
11 return it.currentBucket()[it.valIdx]
14 func (it *Iterator) Next() bool {
15 if it.bucketIdx == -1 {
17 if len(it.bucketIds) == 0 {
27 if it.valIdx >= len(it.currentBucket()) {
31 return it.bucketIdx < len(it.bucketIds)
34 func (it *Iterator) currentBucket() []interface{} {
35 return it.vals[it.bucketIds[it.bucketIdx]]