github.com/apache/arrow/go/v14@v14.0.1/arrow/compute/datumkind_string.go (about) 1 // Code generated by "stringer -type=DatumKind -linecomment"; DO NOT EDIT. 2 3 //go:build go1.18 4 5 package compute 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[KindNone-0] 14 _ = x[KindScalar-1] 15 _ = x[KindArray-2] 16 _ = x[KindChunked-3] 17 _ = x[KindRecord-4] 18 _ = x[KindTable-5] 19 } 20 21 const _DatumKind_name = "nonescalararraychunked_arrayrecord_batchtable" 22 23 var _DatumKind_index = [...]uint8{0, 4, 10, 15, 28, 40, 45} 24 25 func (i DatumKind) String() string { 26 if i < 0 || i >= DatumKind(len(_DatumKind_index)-1) { 27 return "DatumKind(" + strconv.FormatInt(int64(i), 10) + ")" 28 } 29 return _DatumKind_name[_DatumKind_index[i]:_DatumKind_index[i+1]] 30 }