github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/execinfra/consumerstatus_string.go (about) 1 // Code generated by "stringer -type=ConsumerStatus"; DO NOT EDIT. 2 3 package execinfra 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[NeedMoreRows-0] 12 _ = x[DrainRequested-1] 13 _ = x[ConsumerClosed-2] 14 } 15 16 const _ConsumerStatus_name = "NeedMoreRowsDrainRequestedConsumerClosed" 17 18 var _ConsumerStatus_index = [...]uint8{0, 12, 26, 40} 19 20 func (i ConsumerStatus) String() string { 21 if i >= ConsumerStatus(len(_ConsumerStatus_index)-1) { 22 return "ConsumerStatus(" + strconv.FormatInt(int64(i), 10) + ")" 23 } 24 return _ConsumerStatus_name[_ConsumerStatus_index[i]:_ConsumerStatus_index[i+1]] 25 }