func (s *Search) NextMetricBlock() bool {
	if s.err != nil {
		return false
	}
	for s.ts.NextBlock() {
		tsid := &s.ts.Block.bh.TSID
		var err error
		s.MetricBlock.MetricName, err = s.storage.searchMetricName(s.MetricBlock.MetricName[:0], tsid.MetricID)
		if err != nil {
			if err == io.EOF {
				// Missing metricName for tsid.MetricID. Increment error counter and skip it.
				atomic.AddUint64(&s.MissingMetricNamesForMetricID, 1)
				continue
			}
			s.err = err
			return false
		}
		s.MetricBlock.Block = s.ts.Block
		return true
	}
	if err := s.ts.Error(); err != nil {
		s.err = err
		return false
	}

	s.err = io.EOF
	return false
}
// NextMetricBlock proceeds to the next MetricBlock.
NextMetricBlock proceeds to the next MetricBlock.
// NextMetricBlock proceeds to the next MetricBlock .
func (s *Search) NextMetricBlock() bool {
	if s.err != nil {
		return false
	}
	for s.ts.NextBlock() {
		tsid := &s.ts.Block.bh.TSID
		var err error
		s.MetricBlock.MetricName, err = s.storage.searchMetricName(s.MetricBlock.MetricName[:0], tsid.MetricID)
		if err != nil {
			if err == io.EOF {
				atomic.AddUint64(&s.MissingMetricNamesForMetricID, 1)
				continue
			}
			s.err = err
			return false
		}
		s.MetricBlock.Block = s.ts.Block
		return true
	}
	if err := s.ts.Error(); err != nil {
		s.err = err
		return false
	}
	s.err = io.EOF
	return false
}
func ( s * Search ) NextMetricBlock ( ) bool { if s . err != nil { return false } for s . ts . NextBlock ( ) { tsid := & s . ts . Block . bh . TSID var err error s . MetricBlock . MetricName , err = s . storage . searchMetricName ( s . MetricBlock . MetricName [ : 0 ] , tsid . MetricID ) if err != nil { if err == io . EOF { atomic . AddUint64 ( & s . MissingMetricNamesForMetricID , 1 ) continue } s . err = err return false } s . MetricBlock . Block = s . ts . Block return true } if err := s . ts . Error ( ) ; err != nil { s . err = err return false } s . err = io . EOF return false }
NextMetricBlock proceeds to the next MetricBlock.
NextMetricBlock proceeds to the next MetricBlock .
// Missing metricName for tsid.MetricID. Increment error counter and skip it.