()
| 49 | } |
| 50 | |
| 51 | func (bs *batchStream) at() (int64, float64) { |
| 52 | b := &(*bs)[0] |
| 53 | return b.Timestamps[b.Index], b.Values[b.Index] |
| 54 | } |
| 55 | |
| 56 | func mergeStreams(left, right batchStream, result batchStream, size int) batchStream { |
| 57 | // Reset the Index and Length of existing batches. |