1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by the FlatBuffers compiler. DO NOT EDIT.
package flatbuf
import "strconv"
// / ----------------------------------------------------------------------
// / Top-level Type value, enabling extensible type-specific metadata. We can
// / add new logical types to Type without breaking backwards compatibility
type Type byte
const (
TypeNONE Type = 0
TypeNull Type = 1
TypeInt Type = 2
TypeFloatingPoint Type = 3
TypeBinary Type = 4
TypeUtf8 Type = 5
TypeBool Type = 6
TypeDecimal Type = 7
TypeDate Type = 8
TypeTime Type = 9
TypeTimestamp Type = 10
TypeInterval Type = 11
TypeList Type = 12
TypeStruct_ Type = 13
TypeUnion Type = 14
TypeFixedSizeBinary Type = 15
TypeFixedSizeList Type = 16
TypeMap Type = 17
TypeDuration Type = 18
TypeLargeBinary Type = 19
TypeLargeUtf8 Type = 20
TypeLargeList Type = 21
TypeRunEndEncoded Type = 22
TypeBinaryView Type = 23
TypeUtf8View Type = 24
TypeListView Type = 25
TypeLargeListView Type = 26
)
var EnumNamesType = map[Type]string{
TypeNONE: "NONE",
TypeNull: "Null",
TypeInt: "Int",
TypeFloatingPoint: "FloatingPoint",
TypeBinary: "Binary",
TypeUtf8: "Utf8",
TypeBool: "Bool",
TypeDecimal: "Decimal",
TypeDate: "Date",
TypeTime: "Time",
TypeTimestamp: "Timestamp",
TypeInterval: "Interval",
TypeList: "List",
TypeStruct_: "Struct_",
TypeUnion: "Union",
TypeFixedSizeBinary: "FixedSizeBinary",
TypeFixedSizeList: "FixedSizeList",
TypeMap: "Map",
TypeDuration: "Duration",
TypeLargeBinary: "LargeBinary",
TypeLargeUtf8: "LargeUtf8",
TypeLargeList: "LargeList",
TypeRunEndEncoded: "RunEndEncoded",
TypeBinaryView: "BinaryView",
TypeUtf8View: "Utf8View",
TypeListView: "ListView",
TypeLargeListView: "LargeListView",
}
var EnumValuesType = map[string]Type{
"NONE": TypeNONE,
"Null": TypeNull,
"Int": TypeInt,
"FloatingPoint": TypeFloatingPoint,
"Binary": TypeBinary,
"Utf8": TypeUtf8,
"Bool": TypeBool,
"Decimal": TypeDecimal,
"Date": TypeDate,
"Time": TypeTime,
"Timestamp": TypeTimestamp,
"Interval": TypeInterval,
"List": TypeList,
"Struct_": TypeStruct_,
"Union": TypeUnion,
"FixedSizeBinary": TypeFixedSizeBinary,
"FixedSizeList": TypeFixedSizeList,
"Map": TypeMap,
"Duration": TypeDuration,
"LargeBinary": TypeLargeBinary,
"LargeUtf8": TypeLargeUtf8,
"LargeList": TypeLargeList,
"RunEndEncoded": TypeRunEndEncoded,
"BinaryView": TypeBinaryView,
"Utf8View": TypeUtf8View,
"ListView": TypeListView,
"LargeListView": TypeLargeListView,
}
func (v Type) String() string {
if s, ok := EnumNamesType[v]; ok {
return s
}
return "Type(" + strconv.FormatInt(int64(v), 10) + ")"
}
|