]> git.proxmox.com Git - ceph.git/blob - ceph/src/arrow/go/arrow/internal/flatbuf/MetadataVersion.go
import quincy 17.2.0
[ceph.git] / ceph / src / arrow / go / arrow / internal / flatbuf / MetadataVersion.go
1 // Licensed to the Apache Software Foundation (ASF) under one
2 // or more contributor license agreements. See the NOTICE file
3 // distributed with this work for additional information
4 // regarding copyright ownership. The ASF licenses this file
5 // to you under the Apache License, Version 2.0 (the
6 // "License"); you may not use this file except in compliance
7 // with the License. You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16
17 // Code generated by the FlatBuffers compiler. DO NOT EDIT.
18
19 package flatbuf
20
21 import "strconv"
22
23 type MetadataVersion int16
24
25 const (
26 /// 0.1.0 (October 2016).
27 MetadataVersionV1 MetadataVersion = 0
28 /// 0.2.0 (February 2017). Non-backwards compatible with V1.
29 MetadataVersionV2 MetadataVersion = 1
30 /// 0.3.0 -> 0.7.1 (May - December 2017). Non-backwards compatible with V2.
31 MetadataVersionV3 MetadataVersion = 2
32 /// >= 0.8.0 (December 2017). Non-backwards compatible with V3.
33 MetadataVersionV4 MetadataVersion = 3
34 /// >= 1.0.0 (July 2020. Backwards compatible with V4 (V5 readers can read V4
35 /// metadata and IPC messages). Implementations are recommended to provide a
36 /// V4 compatibility mode with V5 format changes disabled.
37 ///
38 /// Incompatible changes between V4 and V5:
39 /// - Union buffer layout has changed. In V5, Unions don't have a validity
40 /// bitmap buffer.
41 MetadataVersionV5 MetadataVersion = 4
42 )
43
44 var EnumNamesMetadataVersion = map[MetadataVersion]string{
45 MetadataVersionV1: "V1",
46 MetadataVersionV2: "V2",
47 MetadataVersionV3: "V3",
48 MetadataVersionV4: "V4",
49 MetadataVersionV5: "V5",
50 }
51
52 var EnumValuesMetadataVersion = map[string]MetadataVersion{
53 "V1": MetadataVersionV1,
54 "V2": MetadataVersionV2,
55 "V3": MetadataVersionV3,
56 "V4": MetadataVersionV4,
57 "V5": MetadataVersionV5,
58 }
59
60 func (v MetadataVersion) String() string {
61 if s, ok := EnumNamesMetadataVersion[v]; ok {
62 return s
63 }
64 return "MetadataVersion(" + strconv.FormatInt(int64(v), 10) + ")"
65 }