func (n *namedIteratorForTestingType) Next(r *store.Record) bool { if n.numWritten == n.numToWrite { return false } r.Info = kInt64MetricInfo r.Value = int64(n.numWritten) r.TimeStamp = duration.TimeToFloat(kNow) r.Active = true n.numWritten++ return true }
func (n *namedIteratorSameValueType) Next(r *store.Record) bool { if n.numWritten == n.numToWrite { return false } r.Info = n.info r.Value = n.value r.TimeStamp = duration.TimeToFloat(kNow) r.Active = true n.numWritten++ return true }
func (f *fakeTsIterator) Next(rec *store.Record) bool { if f.Current >= f.End { return false } rec.TimeStamp = f.Current f.Current += f.Incr return true }