github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/colexec/fetcherstate_string.go (about) 1 // Code generated by "stringer -type=fetcherState"; DO NOT EDIT. 2 3 package colexec 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[stateInvalid-0] 12 _ = x[stateInitFetch-1] 13 _ = x[stateResetBatch-2] 14 _ = x[stateDecodeFirstKVOfRow-3] 15 _ = x[stateSeekPrefix-4] 16 _ = x[stateFetchNextKVWithUnfinishedRow-5] 17 _ = x[stateFinalizeRow-6] 18 _ = x[stateEmitLastBatch-7] 19 _ = x[stateFinished-8] 20 } 21 22 const _fetcherState_name = "stateInvalidstateInitFetchstateResetBatchstateDecodeFirstKVOfRowstateSeekPrefixstateFetchNextKVWithUnfinishedRowstateFinalizeRowstateEmitLastBatchstateFinished" 23 24 var _fetcherState_index = [...]uint8{0, 12, 26, 41, 64, 79, 112, 128, 146, 159} 25 26 func (i fetcherState) String() string { 27 if i < 0 || i >= fetcherState(len(_fetcherState_index)-1) { 28 return "fetcherState(" + strconv.FormatInt(int64(i), 10) + ")" 29 } 30 return _fetcherState_name[_fetcherState_index[i]:_fetcherState_index[i+1]] 31 }