github.com/apache/arrow/go/v14@v14.0.1/arrow/compute/internal/kernels/compareoperator_string.go (about) 1 // Code generated by "stringer -type=CompareOperator -linecomment"; DO NOT EDIT. 2 3 //go:build go1.18 4 5 package kernels 6 7 import "strconv" 8 9 func _() { 10 // An "invalid array index" compiler error signifies that the constant values have changed. 11 // Re-run the stringer command to generate them again. 12 var x [1]struct{} 13 _ = x[CmpEQ-0] 14 _ = x[CmpNE-1] 15 _ = x[CmpGT-2] 16 _ = x[CmpGE-3] 17 _ = x[CmpLT-4] 18 _ = x[CmpLE-5] 19 } 20 21 const _CompareOperator_name = "equalnot_equalgreatergreater_equallessless_equal" 22 23 var _CompareOperator_index = [...]uint8{0, 5, 14, 21, 34, 38, 48} 24 25 func (i CompareOperator) String() string { 26 if i < 0 || i >= CompareOperator(len(_CompareOperator_index)-1) { 27 return "CompareOperator(" + strconv.FormatInt(int64(i), 10) + ")" 28 } 29 return _CompareOperator_name[_CompareOperator_index[i]:_CompareOperator_index[i+1]] 30 }