This is an automated email from the ASF dual-hosted git repository. sbinet pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push: new 386a61e ARROW-5308: [Go] remove deprecated Feather format 386a61e is described below commit 386a61e60a52255a346518764c022d64253294c8 Author: Sebastien Binet <bi...@cern.ch> AuthorDate: Fri May 17 09:34:15 2019 +0200 ARROW-5308: [Go] remove deprecated Feather format Author: Sebastien Binet <bi...@cern.ch> Closes #4300 from sbinet/issue-5308 and squashes the following commits: a4570bbd <Sebastien Binet> go/arrow: remove code generation for Feather 575b8ecd <Sebastien Binet> ARROW-5308: remove deprecated Feather format --- go/arrow/gen-flatbuffers.go | 33 ------ go/arrow/ipc/feather/fbs/CTable.go | 134 ----------------------- go/arrow/ipc/feather/fbs/CategoryMetadata.go | 85 --------------- go/arrow/ipc/feather/fbs/Column.go | 117 -------------------- go/arrow/ipc/feather/fbs/DateMetadata.go | 50 --------- go/arrow/ipc/feather/fbs/Encoding.go | 37 ------- go/arrow/ipc/feather/fbs/PrimitiveArray.go | 150 -------------------------- go/arrow/ipc/feather/fbs/TimeMetadata.go | 65 ----------- go/arrow/ipc/feather/fbs/TimeUnit.go | 35 ------ go/arrow/ipc/feather/fbs/TimestampMetadata.go | 80 -------------- go/arrow/ipc/feather/fbs/Type.go | 67 ------------ go/arrow/ipc/feather/fbs/TypeMetadata.go | 37 ------- 12 files changed, 890 deletions(-) diff --git a/go/arrow/gen-flatbuffers.go b/go/arrow/gen-flatbuffers.go index 265d49f..5c8eba4 100644 --- a/go/arrow/gen-flatbuffers.go +++ b/go/arrow/gen-flatbuffers.go @@ -25,7 +25,6 @@ import ( "os" "os/exec" "path/filepath" - "strings" ) func main() { @@ -36,7 +35,6 @@ func main() { defer os.RemoveAll(dir) genFormat(dir) - genFeather(dir) } func genFormat(dir string) { @@ -75,37 +73,6 @@ func genFormat(dir string) { } } -func genFeather(dir string) { - gen := exec.Command("flatc", - "--go", "-o", filepath.Join(dir, "feather"), - "../../cpp/src/arrow/ipc/feather.fbs", - ) - - gen.Stdout = os.Stdout - gen.Stderr = os.Stderr - - err := gen.Run() - if err != nil { - log.Fatal(err) - } - - err = os.MkdirAll("./ipc/feather/fbs", 0755) - if err != nil { - log.Fatalf("could not create ./feather/fbs directory: %v", err) - } - - base := filepath.Join(dir, "feather", "arrow") - fnames, err := filepath.Glob(filepath.Join(base, "ipc", "feather", "*", "*.go")) - if err != nil { - log.Fatalf("could not glob ipc/feather/*.go: %v", err) - } - - for _, fname := range fnames { - dst := strings.Replace(fname, base, ".", -1) - process(dst, fname) - } -} - func process(dst, fname string) { raw, err := ioutil.ReadFile(fname) if err != nil { diff --git a/go/arrow/ipc/feather/fbs/CTable.go b/go/arrow/ipc/feather/fbs/CTable.go deleted file mode 100644 index 09d262f..0000000 --- a/go/arrow/ipc/feather/fbs/CTable.go +++ /dev/null @@ -1,134 +0,0 @@ -// 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 fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CTable struct { - _tab flatbuffers.Table -} - -func GetRootAsCTable(buf []byte, offset flatbuffers.UOffsetT) *CTable { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CTable{} - x.Init(buf, n+offset) - return x -} - -func (rcv *CTable) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CTable) Table() flatbuffers.Table { - return rcv._tab -} - -/// Some text (or a name) metadata about what the file is, optional -func (rcv *CTable) Description() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Some text (or a name) metadata about what the file is, optional -func (rcv *CTable) NumRows() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *CTable) MutateNumRows(n int64) bool { - return rcv._tab.MutateInt64Slot(6, n) -} - -func (rcv *CTable) Columns(obj *Column, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *CTable) ColumnsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// Version number of the Feather format -func (rcv *CTable) Version() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -/// Version number of the Feather format -func (rcv *CTable) MutateVersion(n int32) bool { - return rcv._tab.MutateInt32Slot(10, n) -} - -/// Table metadata (likely JSON), not yet used -func (rcv *CTable) Metadata() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Table metadata (likely JSON), not yet used -func CTableStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func CTableAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(description), 0) -} -func CTableAddNumRows(builder *flatbuffers.Builder, numRows int64) { - builder.PrependInt64Slot(1, numRows, 0) -} -func CTableAddColumns(builder *flatbuffers.Builder, columns flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(columns), 0) -} -func CTableStartColumnsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CTableAddVersion(builder *flatbuffers.Builder, version int32) { - builder.PrependInt32Slot(3, version, 0) -} -func CTableAddMetadata(builder *flatbuffers.Builder, metadata flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(metadata), 0) -} -func CTableEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} diff --git a/go/arrow/ipc/feather/fbs/CategoryMetadata.go b/go/arrow/ipc/feather/fbs/CategoryMetadata.go deleted file mode 100644 index c2d8876..0000000 --- a/go/arrow/ipc/feather/fbs/CategoryMetadata.go +++ /dev/null @@ -1,85 +0,0 @@ -// 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 fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CategoryMetadata struct { - _tab flatbuffers.Table -} - -func GetRootAsCategoryMetadata(buf []byte, offset flatbuffers.UOffsetT) *CategoryMetadata { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CategoryMetadata{} - x.Init(buf, n+offset) - return x -} - -func (rcv *CategoryMetadata) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CategoryMetadata) Table() flatbuffers.Table { - return rcv._tab -} - -/// The category codes are presumed to be integers that are valid indexes into -/// the levels array -func (rcv *CategoryMetadata) Levels(obj *PrimitiveArray) *PrimitiveArray { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(PrimitiveArray) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// The category codes are presumed to be integers that are valid indexes into -/// the levels array -func (rcv *CategoryMetadata) Ordered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *CategoryMetadata) MutateOrdered(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func CategoryMetadataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func CategoryMetadataAddLevels(builder *flatbuffers.Builder, levels flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(levels), 0) -} -func CategoryMetadataAddOrdered(builder *flatbuffers.Builder, ordered bool) { - builder.PrependBoolSlot(1, ordered, false) -} -func CategoryMetadataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} diff --git a/go/arrow/ipc/feather/fbs/Column.go b/go/arrow/ipc/feather/fbs/Column.go deleted file mode 100644 index 275ce4c..0000000 --- a/go/arrow/ipc/feather/fbs/Column.go +++ /dev/null @@ -1,117 +0,0 @@ -// 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 fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Column struct { - _tab flatbuffers.Table -} - -func GetRootAsColumn(buf []byte, offset flatbuffers.UOffsetT) *Column { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Column{} - x.Init(buf, n+offset) - return x -} - -func (rcv *Column) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Column) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Column) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Column) Values(obj *PrimitiveArray) *PrimitiveArray { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(PrimitiveArray) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Column) MetadataType() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Column) MutateMetadataType(n byte) bool { - return rcv._tab.MutateByteSlot(8, n) -} - -func (rcv *Column) Metadata(obj *flatbuffers.Table) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - rcv._tab.Union(obj, o) - return true - } - return false -} - -/// This should (probably) be JSON -func (rcv *Column) UserMetadata() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// This should (probably) be JSON -func ColumnStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func ColumnAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func ColumnAddValues(builder *flatbuffers.Builder, values flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(values), 0) -} -func ColumnAddMetadataType(builder *flatbuffers.Builder, metadataType byte) { - builder.PrependByteSlot(2, metadataType, 0) -} -func ColumnAddMetadata(builder *flatbuffers.Builder, metadata flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(metadata), 0) -} -func ColumnAddUserMetadata(builder *flatbuffers.Builder, userMetadata flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(userMetadata), 0) -} -func ColumnEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} diff --git a/go/arrow/ipc/feather/fbs/DateMetadata.go b/go/arrow/ipc/feather/fbs/DateMetadata.go deleted file mode 100644 index bbe0523..0000000 --- a/go/arrow/ipc/feather/fbs/DateMetadata.go +++ /dev/null @@ -1,50 +0,0 @@ -// 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 fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DateMetadata struct { - _tab flatbuffers.Table -} - -func GetRootAsDateMetadata(buf []byte, offset flatbuffers.UOffsetT) *DateMetadata { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DateMetadata{} - x.Init(buf, n+offset) - return x -} - -func (rcv *DateMetadata) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DateMetadata) Table() flatbuffers.Table { - return rcv._tab -} - -func DateMetadataStart(builder *flatbuffers.Builder) { - builder.StartObject(0) -} -func DateMetadataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} diff --git a/go/arrow/ipc/feather/fbs/Encoding.go b/go/arrow/ipc/feather/fbs/Encoding.go deleted file mode 100644 index 7cf3679..0000000 --- a/go/arrow/ipc/feather/fbs/Encoding.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 fbs - -type Encoding = int8 -const ( - EncodingPLAIN Encoding = 0 - /// Data is stored dictionary-encoded - /// dictionary size: <INT32 Dictionary size> - /// dictionary data: <TYPE primitive array> - /// dictionary index: <INT32 primitive array> - /// - /// TODO: do we care about storing the index values in a smaller typeclass - EncodingDICTIONARY Encoding = 1 -) - -var EnumNamesEncoding = map[Encoding]string{ - EncodingPLAIN:"PLAIN", - EncodingDICTIONARY:"DICTIONARY", -} - diff --git a/go/arrow/ipc/feather/fbs/PrimitiveArray.go b/go/arrow/ipc/feather/fbs/PrimitiveArray.go deleted file mode 100644 index cf17aac..0000000 --- a/go/arrow/ipc/feather/fbs/PrimitiveArray.go +++ /dev/null @@ -1,150 +0,0 @@ -// 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 fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type PrimitiveArray struct { - _tab flatbuffers.Table -} - -func GetRootAsPrimitiveArray(buf []byte, offset flatbuffers.UOffsetT) *PrimitiveArray { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &PrimitiveArray{} - x.Init(buf, n+offset) - return x -} - -func (rcv *PrimitiveArray) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *PrimitiveArray) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *PrimitiveArray) Type() Type { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt8(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *PrimitiveArray) MutateType(n Type) bool { - return rcv._tab.MutateInt8Slot(4, n) -} - -func (rcv *PrimitiveArray) Encoding() Encoding { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetInt8(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *PrimitiveArray) MutateEncoding(n Encoding) bool { - return rcv._tab.MutateInt8Slot(6, n) -} - -/// Relative memory offset of the start of the array data excluding the size -/// of the metadata -func (rcv *PrimitiveArray) Offset() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -/// Relative memory offset of the start of the array data excluding the size -/// of the metadata -func (rcv *PrimitiveArray) MutateOffset(n int64) bool { - return rcv._tab.MutateInt64Slot(8, n) -} - -/// The number of logical values in the array -func (rcv *PrimitiveArray) Length() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -/// The number of logical values in the array -func (rcv *PrimitiveArray) MutateLength(n int64) bool { - return rcv._tab.MutateInt64Slot(10, n) -} - -/// The number of observed nulls -func (rcv *PrimitiveArray) NullCount() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -/// The number of observed nulls -func (rcv *PrimitiveArray) MutateNullCount(n int64) bool { - return rcv._tab.MutateInt64Slot(12, n) -} - -/// The total size of the actual data in the file -func (rcv *PrimitiveArray) TotalBytes() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -/// The total size of the actual data in the file -func (rcv *PrimitiveArray) MutateTotalBytes(n int64) bool { - return rcv._tab.MutateInt64Slot(14, n) -} - -func PrimitiveArrayStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func PrimitiveArrayAddType(builder *flatbuffers.Builder, type_ int8) { - builder.PrependInt8Slot(0, type_, 0) -} -func PrimitiveArrayAddEncoding(builder *flatbuffers.Builder, encoding int8) { - builder.PrependInt8Slot(1, encoding, 0) -} -func PrimitiveArrayAddOffset(builder *flatbuffers.Builder, offset int64) { - builder.PrependInt64Slot(2, offset, 0) -} -func PrimitiveArrayAddLength(builder *flatbuffers.Builder, length int64) { - builder.PrependInt64Slot(3, length, 0) -} -func PrimitiveArrayAddNullCount(builder *flatbuffers.Builder, nullCount int64) { - builder.PrependInt64Slot(4, nullCount, 0) -} -func PrimitiveArrayAddTotalBytes(builder *flatbuffers.Builder, totalBytes int64) { - builder.PrependInt64Slot(5, totalBytes, 0) -} -func PrimitiveArrayEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} diff --git a/go/arrow/ipc/feather/fbs/TimeMetadata.go b/go/arrow/ipc/feather/fbs/TimeMetadata.go deleted file mode 100644 index 6970f87..0000000 --- a/go/arrow/ipc/feather/fbs/TimeMetadata.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TimeMetadata struct { - _tab flatbuffers.Table -} - -func GetRootAsTimeMetadata(buf []byte, offset flatbuffers.UOffsetT) *TimeMetadata { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &TimeMetadata{} - x.Init(buf, n+offset) - return x -} - -func (rcv *TimeMetadata) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *TimeMetadata) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *TimeMetadata) Unit() TimeUnit { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt8(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *TimeMetadata) MutateUnit(n TimeUnit) bool { - return rcv._tab.MutateInt8Slot(4, n) -} - -func TimeMetadataStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func TimeMetadataAddUnit(builder *flatbuffers.Builder, unit int8) { - builder.PrependInt8Slot(0, unit, 0) -} -func TimeMetadataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} diff --git a/go/arrow/ipc/feather/fbs/TimeUnit.go b/go/arrow/ipc/feather/fbs/TimeUnit.go deleted file mode 100644 index afd3876..0000000 --- a/go/arrow/ipc/feather/fbs/TimeUnit.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 fbs - -type TimeUnit = int8 -const ( - TimeUnitSECOND TimeUnit = 0 - TimeUnitMILLISECOND TimeUnit = 1 - TimeUnitMICROSECOND TimeUnit = 2 - TimeUnitNANOSECOND TimeUnit = 3 -) - -var EnumNamesTimeUnit = map[TimeUnit]string{ - TimeUnitSECOND:"SECOND", - TimeUnitMILLISECOND:"MILLISECOND", - TimeUnitMICROSECOND:"MICROSECOND", - TimeUnitNANOSECOND:"NANOSECOND", -} - diff --git a/go/arrow/ipc/feather/fbs/TimestampMetadata.go b/go/arrow/ipc/feather/fbs/TimestampMetadata.go deleted file mode 100644 index 496cac3..0000000 --- a/go/arrow/ipc/feather/fbs/TimestampMetadata.go +++ /dev/null @@ -1,80 +0,0 @@ -// 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 fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TimestampMetadata struct { - _tab flatbuffers.Table -} - -func GetRootAsTimestampMetadata(buf []byte, offset flatbuffers.UOffsetT) *TimestampMetadata { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &TimestampMetadata{} - x.Init(buf, n+offset) - return x -} - -func (rcv *TimestampMetadata) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *TimestampMetadata) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *TimestampMetadata) Unit() TimeUnit { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt8(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *TimestampMetadata) MutateUnit(n TimeUnit) bool { - return rcv._tab.MutateInt8Slot(4, n) -} - -/// Timestamp data is assumed to be UTC, but the time zone is stored here for -/// presentation as localized -func (rcv *TimestampMetadata) Timezone() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Timestamp data is assumed to be UTC, but the time zone is stored here for -/// presentation as localized -func TimestampMetadataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func TimestampMetadataAddUnit(builder *flatbuffers.Builder, unit int8) { - builder.PrependInt8Slot(0, unit, 0) -} -func TimestampMetadataAddTimezone(builder *flatbuffers.Builder, timezone flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(timezone), 0) -} -func TimestampMetadataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} diff --git a/go/arrow/ipc/feather/fbs/Type.go b/go/arrow/ipc/feather/fbs/Type.go deleted file mode 100644 index f6a6771..0000000 --- a/go/arrow/ipc/feather/fbs/Type.go +++ /dev/null @@ -1,67 +0,0 @@ -// 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 fbs - -/// Feather is an experimental serialization format implemented using -/// techniques from Apache Arrow. It was created as a proof-of-concept of an -/// interoperable file format for storing data frames originating in Python or -/// R. It enabled the developers to sidestep some of the open design questions -/// in Arrow from early 2016 and instead create something simple and useful for -/// the intended use cases. -type Type = int8 -const ( - TypeBOOL Type = 0 - TypeINT8 Type = 1 - TypeINT16 Type = 2 - TypeINT32 Type = 3 - TypeINT64 Type = 4 - TypeUINT8 Type = 5 - TypeUINT16 Type = 6 - TypeUINT32 Type = 7 - TypeUINT64 Type = 8 - TypeFLOAT Type = 9 - TypeDOUBLE Type = 10 - TypeUTF8 Type = 11 - TypeBINARY Type = 12 - TypeCATEGORY Type = 13 - TypeTIMESTAMP Type = 14 - TypeDATE Type = 15 - TypeTIME Type = 16 -) - -var EnumNamesType = map[Type]string{ - TypeBOOL:"BOOL", - TypeINT8:"INT8", - TypeINT16:"INT16", - TypeINT32:"INT32", - TypeINT64:"INT64", - TypeUINT8:"UINT8", - TypeUINT16:"UINT16", - TypeUINT32:"UINT32", - TypeUINT64:"UINT64", - TypeFLOAT:"FLOAT", - TypeDOUBLE:"DOUBLE", - TypeUTF8:"UTF8", - TypeBINARY:"BINARY", - TypeCATEGORY:"CATEGORY", - TypeTIMESTAMP:"TIMESTAMP", - TypeDATE:"DATE", - TypeTIME:"TIME", -} - diff --git a/go/arrow/ipc/feather/fbs/TypeMetadata.go b/go/arrow/ipc/feather/fbs/TypeMetadata.go deleted file mode 100644 index b28e9f1..0000000 --- a/go/arrow/ipc/feather/fbs/TypeMetadata.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 fbs - -type TypeMetadata = byte -const ( - TypeMetadataNONE TypeMetadata = 0 - TypeMetadataCategoryMetadata TypeMetadata = 1 - TypeMetadataTimestampMetadata TypeMetadata = 2 - TypeMetadataDateMetadata TypeMetadata = 3 - TypeMetadataTimeMetadata TypeMetadata = 4 -) - -var EnumNamesTypeMetadata = map[TypeMetadata]string{ - TypeMetadataNONE:"NONE", - TypeMetadataCategoryMetadata:"CategoryMetadata", - TypeMetadataTimestampMetadata:"TimestampMetadata", - TypeMetadataDateMetadata:"DateMetadata", - TypeMetadataTimeMetadata:"TimeMetadata", -} -