forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apacheGH-38648: [Java] Regenerate Flatbuffers (apache#38650)
### Rationale for this change Regenerate the Flatbuffers to include new formats. Flatbuffers are always forwards/backwards compatible as long as the code is generated from the same `flatc` compiler version. ### What changes are included in this PR? * Flatbuffers regenerated with `flatc` v1.12.0 ### Are these changes tested? Yes, via unit tests. ### Are there any user-facing changes? Yes, RecordBatch.java was modified. * Closes: apache#38648 Authored-by: Dane Pitkin <[email protected]> Signed-off-by: David Li <[email protected]>
- Loading branch information
1 parent
80503a6
commit 1f71014
Showing
11 changed files
with
435 additions
and
51 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
java/format/src/main/java/org/apache/arrow/flatbuf/BinaryView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// 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. | ||
// | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
|
||
package org.apache.arrow.flatbuf; | ||
|
||
import java.nio.*; | ||
import java.lang.*; | ||
import java.util.*; | ||
import com.google.flatbuffers.*; | ||
|
||
@SuppressWarnings("unused") | ||
/** | ||
* Logically the same as Binary, but the internal representation uses a view | ||
* struct that contains the string length and either the string's entire data | ||
* inline (for small strings) or an inlined prefix, an index of another buffer, | ||
* and an offset pointing to a slice in that buffer (for non-small strings). | ||
* | ||
* Since it uses a variable number of data buffers, each Field with this type | ||
* must have a corresponding entry in `variadicBufferCounts`. | ||
*/ | ||
public final class BinaryView extends Table { | ||
public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } | ||
public static BinaryView getRootAsBinaryView(ByteBuffer _bb) { return getRootAsBinaryView(_bb, new BinaryView()); } | ||
public static BinaryView getRootAsBinaryView(ByteBuffer _bb, BinaryView obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } | ||
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } | ||
public BinaryView __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } | ||
|
||
|
||
public static void startBinaryView(FlatBufferBuilder builder) { builder.startTable(0); } | ||
public static int endBinaryView(FlatBufferBuilder builder) { | ||
int o = builder.endTable(); | ||
return o; | ||
} | ||
|
||
public static final class Vector extends BaseVector { | ||
public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; } | ||
|
||
public BinaryView get(int j) { return get(new BinaryView(), j); } | ||
public BinaryView get(BinaryView obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
java/format/src/main/java/org/apache/arrow/flatbuf/LargeListView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// 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. | ||
// | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
|
||
package org.apache.arrow.flatbuf; | ||
|
||
import java.nio.*; | ||
import java.lang.*; | ||
import java.util.*; | ||
import com.google.flatbuffers.*; | ||
|
||
@SuppressWarnings("unused") | ||
/** | ||
* Same as ListView, but with 64-bit offsets and sizes, allowing to represent | ||
* extremely large data values. | ||
*/ | ||
public final class LargeListView extends Table { | ||
public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } | ||
public static LargeListView getRootAsLargeListView(ByteBuffer _bb) { return getRootAsLargeListView(_bb, new LargeListView()); } | ||
public static LargeListView getRootAsLargeListView(ByteBuffer _bb, LargeListView obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } | ||
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } | ||
public LargeListView __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } | ||
|
||
|
||
public static void startLargeListView(FlatBufferBuilder builder) { builder.startTable(0); } | ||
public static int endLargeListView(FlatBufferBuilder builder) { | ||
int o = builder.endTable(); | ||
return o; | ||
} | ||
|
||
public static final class Vector extends BaseVector { | ||
public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; } | ||
|
||
public LargeListView get(int j) { return get(new LargeListView(), j); } | ||
public LargeListView get(LargeListView obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } | ||
} | ||
} | ||
|
53 changes: 53 additions & 0 deletions
53
java/format/src/main/java/org/apache/arrow/flatbuf/ListView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// 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. | ||
// | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
|
||
package org.apache.arrow.flatbuf; | ||
|
||
import java.nio.*; | ||
import java.lang.*; | ||
import java.util.*; | ||
import com.google.flatbuffers.*; | ||
|
||
@SuppressWarnings("unused") | ||
/** | ||
* Represents the same logical types that List can, but contains offsets and | ||
* sizes allowing for writes in any order and sharing of child values among | ||
* list values. | ||
*/ | ||
public final class ListView extends Table { | ||
public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } | ||
public static ListView getRootAsListView(ByteBuffer _bb) { return getRootAsListView(_bb, new ListView()); } | ||
public static ListView getRootAsListView(ByteBuffer _bb, ListView obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } | ||
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } | ||
public ListView __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } | ||
|
||
|
||
public static void startListView(FlatBufferBuilder builder) { builder.startTable(0); } | ||
public static int endListView(FlatBufferBuilder builder) { | ||
int o = builder.endTable(); | ||
return o; | ||
} | ||
|
||
public static final class Vector extends BaseVector { | ||
public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; } | ||
|
||
public ListView get(int j) { return get(new ListView(), j); } | ||
public ListView get(ListView obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
java/format/src/main/java/org/apache/arrow/flatbuf/RunEndEncoded.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// 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. | ||
// | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
|
||
package org.apache.arrow.flatbuf; | ||
|
||
import java.nio.*; | ||
import java.lang.*; | ||
import java.util.*; | ||
import com.google.flatbuffers.*; | ||
|
||
@SuppressWarnings("unused") | ||
/** | ||
* Contains two child arrays, run_ends and values. | ||
* The run_ends child array must be a 16/32/64-bit integer array | ||
* which encodes the indices at which the run with the value in | ||
* each corresponding index in the values child array ends. | ||
* Like list/struct types, the value array can be of any type. | ||
*/ | ||
public final class RunEndEncoded extends Table { | ||
public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } | ||
public static RunEndEncoded getRootAsRunEndEncoded(ByteBuffer _bb) { return getRootAsRunEndEncoded(_bb, new RunEndEncoded()); } | ||
public static RunEndEncoded getRootAsRunEndEncoded(ByteBuffer _bb, RunEndEncoded obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } | ||
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } | ||
public RunEndEncoded __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } | ||
|
||
|
||
public static void startRunEndEncoded(FlatBufferBuilder builder) { builder.startTable(0); } | ||
public static int endRunEndEncoded(FlatBufferBuilder builder) { | ||
int o = builder.endTable(); | ||
return o; | ||
} | ||
|
||
public static final class Vector extends BaseVector { | ||
public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; } | ||
|
||
public RunEndEncoded get(int j) { return get(new RunEndEncoded(), j); } | ||
public RunEndEncoded get(RunEndEncoded obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.