zeroshade commented on code in PR #35769:
URL: https://github.com/apache/arrow/pull/35769#discussion_r1238624571


##########
go/arrow/internal/flatbuf/RecordBatch.go:
##########
@@ -128,8 +128,42 @@ func (rcv *RecordBatch) Compression(obj *BodyCompression) 
*BodyCompression {
 }
 
 /// Optional compression of the message body
+/// Some types such as Utf8View are represented using a variable number of 
buffers.
+/// For each such Field in the pre-ordered flattened logical schema, there 
will be
+/// an entry in variadicCounts to indicate the number of extra buffers which 
belong
+/// to that Field.
+func (rcv *RecordBatch) VariadicCounts(j int) int64 {
+       o := flatbuffers.UOffsetT(rcv._tab.Offset(12))
+       if o != 0 {
+               a := rcv._tab.Vector(o)
+               return rcv._tab.GetInt64(a + flatbuffers.UOffsetT(j*8))
+       }
+       return 0

Review Comment:
   I'm not going to modify the generated code. Everything in this folder is 
generated by `flatc` from the `.fbs` files.



##########
go/arrow/internal/flatbuf/RecordBatch.go:
##########
@@ -128,8 +128,42 @@ func (rcv *RecordBatch) Compression(obj *BodyCompression) 
*BodyCompression {
 }
 
 /// Optional compression of the message body
+/// Some types such as Utf8View are represented using a variable number of 
buffers.
+/// For each such Field in the pre-ordered flattened logical schema, there 
will be
+/// an entry in variadicCounts to indicate the number of extra buffers which 
belong
+/// to that Field.
+func (rcv *RecordBatch) VariadicCounts(j int) int64 {
+       o := flatbuffers.UOffsetT(rcv._tab.Offset(12))
+       if o != 0 {
+               a := rcv._tab.Vector(o)
+               return rcv._tab.GetInt64(a + flatbuffers.UOffsetT(j*8))
+       }
+       return 0
+}
+
+func (rcv *RecordBatch) VariadicCountsLength() int {
+       o := flatbuffers.UOffsetT(rcv._tab.Offset(12))
+       if o != 0 {
+               return rcv._tab.VectorLen(o)
+       }
+       return 0
+}
+
+/// Some types such as Utf8View are represented using a variable number of 
buffers.
+/// For each such Field in the pre-ordered flattened logical schema, there 
will be
+/// an entry in variadicCounts to indicate the number of extra buffers which 
belong
+/// to that Field.
+func (rcv *RecordBatch) MutateVariadicCounts(j int, n int64) bool {
+       o := flatbuffers.UOffsetT(rcv._tab.Offset(12))
+       if o != 0 {
+               a := rcv._tab.Vector(o)
+               return rcv._tab.MutateInt64(a+flatbuffers.UOffsetT(j*8), n)
+       }
+       return false

Review Comment:
   I'm not going to modify the generated code. Everything in this folder is 
generated by flatc from the .fbs files.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to