1// Code generated by datatype_numeric.gen.go.tmpl. DO NOT EDIT. 2 3// Licensed to the Apache Software Foundation (ASF) under one 4// or more contributor license agreements. See the NOTICE file 5// distributed with this work for additional information 6// regarding copyright ownership. The ASF licenses this file 7// to you under the Apache License, Version 2.0 (the 8// "License"); you may not use this file except in compliance 9// with the License. You may obtain a copy of the License at 10// 11// http://www.apache.org/licenses/LICENSE-2.0 12// 13// Unless required by applicable law or agreed to in writing, software 14// distributed under the License is distributed on an "AS IS" BASIS, 15// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16// See the License for the specific language governing permissions and 17// limitations under the License. 18 19package arrow 20 21type Int8Type struct{} 22 23func (t *Int8Type) ID() Type { return INT8 } 24func (t *Int8Type) Name() string { return "int8" } 25func (t *Int8Type) String() string { return "int8" } 26func (t *Int8Type) BitWidth() int { return 8 } 27func (t *Int8Type) Fingerprint() string { return typeFingerprint(t) } 28 29type Int16Type struct{} 30 31func (t *Int16Type) ID() Type { return INT16 } 32func (t *Int16Type) Name() string { return "int16" } 33func (t *Int16Type) String() string { return "int16" } 34func (t *Int16Type) BitWidth() int { return 16 } 35func (t *Int16Type) Fingerprint() string { return typeFingerprint(t) } 36 37type Int32Type struct{} 38 39func (t *Int32Type) ID() Type { return INT32 } 40func (t *Int32Type) Name() string { return "int32" } 41func (t *Int32Type) String() string { return "int32" } 42func (t *Int32Type) BitWidth() int { return 32 } 43func (t *Int32Type) Fingerprint() string { return typeFingerprint(t) } 44 45type Int64Type struct{} 46 47func (t *Int64Type) ID() Type { return INT64 } 48func (t *Int64Type) Name() string { return "int64" } 49func (t *Int64Type) String() string { return "int64" } 50func (t *Int64Type) BitWidth() int { return 64 } 51func (t *Int64Type) Fingerprint() string { return typeFingerprint(t) } 52 53type Uint8Type struct{} 54 55func (t *Uint8Type) ID() Type { return UINT8 } 56func (t *Uint8Type) Name() string { return "uint8" } 57func (t *Uint8Type) String() string { return "uint8" } 58func (t *Uint8Type) BitWidth() int { return 8 } 59func (t *Uint8Type) Fingerprint() string { return typeFingerprint(t) } 60 61type Uint16Type struct{} 62 63func (t *Uint16Type) ID() Type { return UINT16 } 64func (t *Uint16Type) Name() string { return "uint16" } 65func (t *Uint16Type) String() string { return "uint16" } 66func (t *Uint16Type) BitWidth() int { return 16 } 67func (t *Uint16Type) Fingerprint() string { return typeFingerprint(t) } 68 69type Uint32Type struct{} 70 71func (t *Uint32Type) ID() Type { return UINT32 } 72func (t *Uint32Type) Name() string { return "uint32" } 73func (t *Uint32Type) String() string { return "uint32" } 74func (t *Uint32Type) BitWidth() int { return 32 } 75func (t *Uint32Type) Fingerprint() string { return typeFingerprint(t) } 76 77type Uint64Type struct{} 78 79func (t *Uint64Type) ID() Type { return UINT64 } 80func (t *Uint64Type) Name() string { return "uint64" } 81func (t *Uint64Type) String() string { return "uint64" } 82func (t *Uint64Type) BitWidth() int { return 64 } 83func (t *Uint64Type) Fingerprint() string { return typeFingerprint(t) } 84 85type Float32Type struct{} 86 87func (t *Float32Type) ID() Type { return FLOAT32 } 88func (t *Float32Type) Name() string { return "float32" } 89func (t *Float32Type) String() string { return "float32" } 90func (t *Float32Type) BitWidth() int { return 32 } 91func (t *Float32Type) Fingerprint() string { return typeFingerprint(t) } 92 93type Float64Type struct{} 94 95func (t *Float64Type) ID() Type { return FLOAT64 } 96func (t *Float64Type) Name() string { return "float64" } 97func (t *Float64Type) String() string { return "float64" } 98func (t *Float64Type) BitWidth() int { return 64 } 99func (t *Float64Type) Fingerprint() string { return typeFingerprint(t) } 100 101type Date32Type struct{} 102 103func (t *Date32Type) ID() Type { return DATE32 } 104func (t *Date32Type) Name() string { return "date32" } 105func (t *Date32Type) String() string { return "date32" } 106func (t *Date32Type) BitWidth() int { return 32 } 107func (t *Date32Type) Fingerprint() string { return typeFingerprint(t) } 108 109type Date64Type struct{} 110 111func (t *Date64Type) ID() Type { return DATE64 } 112func (t *Date64Type) Name() string { return "date64" } 113func (t *Date64Type) String() string { return "date64" } 114func (t *Date64Type) BitWidth() int { return 64 } 115func (t *Date64Type) Fingerprint() string { return typeFingerprint(t) } 116 117var ( 118 PrimitiveTypes = struct { 119 Int8 DataType 120 Int16 DataType 121 Int32 DataType 122 Int64 DataType 123 Uint8 DataType 124 Uint16 DataType 125 Uint32 DataType 126 Uint64 DataType 127 Float32 DataType 128 Float64 DataType 129 Date32 DataType 130 Date64 DataType 131 }{ 132 133 Int8: &Int8Type{}, 134 Int16: &Int16Type{}, 135 Int32: &Int32Type{}, 136 Int64: &Int64Type{}, 137 Uint8: &Uint8Type{}, 138 Uint16: &Uint16Type{}, 139 Uint32: &Uint32Type{}, 140 Uint64: &Uint64Type{}, 141 Float32: &Float32Type{}, 142 Float64: &Float64Type{}, 143 Date32: &Date32Type{}, 144 Date64: &Date64Type{}, 145 } 146) 147