From 0301dd86e900601794d8012325b1453a1627a078 Mon Sep 17 00:00:00 2001 From: chaokunyang Date: Sun, 7 Jan 2024 22:13:44 +0800 Subject: [PATCH] rename fury-benchmark to benchmark --- .gitattributes | 2 +- .github/workflows/ci.yml | 4 - NOTICE | 16 +- ci/deploy.sh | 2 +- ci/format.sh | 2 +- ci/run_ci.sh | 2 +- .../jdk_compatibility_tests/pom.xml | 4 +- java/{fury-benchmark => benchmark}/README.md | 0 java/{fury-benchmark => benchmark}/analyze.py | 0 java/{fury-benchmark => benchmark}/pom.xml | 2 +- java/{fury-benchmark => benchmark}/runtest.sh | 0 .../runtest_jdk11.sh | 0 .../org/apache/fury/benchmark/ArraySuite.java | 0 .../org/apache/fury/benchmark/Benchmark.java | 0 .../fury/benchmark/CollectionSuite.java | 0 .../fury/benchmark/CompressStringSuite.java | 0 .../apache/fury/benchmark/Identity2IdMap.java | 0 .../benchmark/IntsDeserializationSuite.java | 0 .../benchmark/IntsSerializationSuite.java | 0 .../LongStringDeserializationSuite.java | 0 .../LongStringSerializationSuite.java | 0 .../benchmark/LongsDeserializationSuite.java | 0 .../benchmark/LongsSerializationSuite.java | 0 .../org/apache/fury/benchmark/MapSuite.java | 0 .../apache/fury/benchmark/MemorySuite.java | 0 .../fury/benchmark/NewJava11StringSuite.java | 0 .../apache/fury/benchmark/NewStringSuite.java | 0 .../org/apache/fury/benchmark/RowSuite.java | 0 .../benchmark/StringDeserializationSuite.java | 0 .../benchmark/StringSerializationSuite.java | 0 .../benchmark/UserTypeDeserializeSuite.java | 0 .../benchmark/UserTypeSerializeSuite.java | 0 .../apache/fury/benchmark/ZeroCopySuite.java | 0 .../benchmark/data/ComparableByteArray.java | 0 .../data/CustomJDKSerialization.java | 0 .../org/apache/fury/benchmark/data/Data.java | 0 .../org/apache/fury/benchmark/data/Image.java | 0 .../org/apache/fury/benchmark/data/Media.java | 0 .../fury/benchmark/data/MediaContent.java | 0 .../apache/fury/benchmark/data/Sample.java | 0 .../data/SerializableByteBuffer.java | 0 .../apache/fury/benchmark/data/Struct.java | 0 .../fury/benchmark/state/BenchmarkState.java | 0 .../fury/benchmark/state/BufferType.java | 0 .../apache/fury/benchmark/state/Example.java | 0 .../benchmark/state/FlatBuffersState.java | 0 .../apache/fury/benchmark/state/FstState.java | 0 .../fury/benchmark/state/FuryState.java | 0 .../fury/benchmark/state/HessionState.java | 0 .../apache/fury/benchmark/state/JDKState.java | 0 .../fury/benchmark/state/JsonbState.java | 0 .../fury/benchmark/state/KryoState.java | 0 .../fury/benchmark/state/ObjectType.java | 0 .../benchmark/state/ProtoBuffersState.java | 0 .../fury/benchmark/state/ProtostuffState.java | 0 .../org/apache/fury/benchmark/state/bench.fbs | 0 .../src/main/proto/bench.proto | 0 .../benchmark/state/FlatBuffersStateTest.java | 0 .../state/ProtoBuffersStateTest.java | 0 .../benchmark/state/generated/FBSBar.java | 117 ------------ .../benchmark/state/generated/FBSFoo.java | 63 ------- .../benchmark/state/generated/FBSImage.java | 66 ------- .../benchmark/state/generated/FBSMedia.java | 98 ---------- .../state/generated/FBSMediaContent.java | 52 ------ .../benchmark/state/generated/FBSPlayer.java | 14 -- .../benchmark/state/generated/FBSSample.java | 176 ------------------ .../benchmark/state/generated/FBSSize.java | 14 -- licenserc.toml | 18 +- 68 files changed, 24 insertions(+), 628 deletions(-) rename java/{fury-benchmark => benchmark}/README.md (100%) rename java/{fury-benchmark => benchmark}/analyze.py (100%) rename java/{fury-benchmark => benchmark}/pom.xml (99%) rename java/{fury-benchmark => benchmark}/runtest.sh (100%) rename java/{fury-benchmark => benchmark}/runtest_jdk11.sh (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/ArraySuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/Benchmark.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/CollectionSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/CompressStringSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/Identity2IdMap.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/IntsDeserializationSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/IntsSerializationSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/LongStringDeserializationSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/LongStringSerializationSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/LongsDeserializationSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/LongsSerializationSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/MapSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/MemorySuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/NewJava11StringSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/NewStringSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/RowSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/StringDeserializationSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/StringSerializationSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/UserTypeDeserializeSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/UserTypeSerializeSuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/ZeroCopySuite.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/data/ComparableByteArray.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/data/CustomJDKSerialization.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/data/Data.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/data/Image.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/data/Media.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/data/MediaContent.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/data/Sample.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/data/SerializableByteBuffer.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/data/Struct.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/state/BenchmarkState.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/state/BufferType.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/state/Example.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/state/FlatBuffersState.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/state/FstState.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/state/FuryState.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/state/HessionState.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/state/JDKState.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/state/JsonbState.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/state/KryoState.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/state/ObjectType.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/state/ProtoBuffersState.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/state/ProtostuffState.java (100%) rename java/{fury-benchmark => benchmark}/src/main/java/org/apache/fury/benchmark/state/bench.fbs (100%) rename java/{fury-benchmark => benchmark}/src/main/proto/bench.proto (100%) rename java/{fury-benchmark => benchmark}/src/test/java/org/apache/fury/benchmark/state/FlatBuffersStateTest.java (100%) rename java/{fury-benchmark => benchmark}/src/test/java/org/apache/fury/benchmark/state/ProtoBuffersStateTest.java (100%) delete mode 100644 java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSBar.java delete mode 100644 java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSFoo.java delete mode 100644 java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSImage.java delete mode 100644 java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSMedia.java delete mode 100644 java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSMediaContent.java delete mode 100644 java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSPlayer.java delete mode 100644 java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSSample.java delete mode 100644 java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSSize.java diff --git a/.gitattributes b/.gitattributes index 4c3924f505..8dbf011d35 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -java/fury-benchmark export-ignore +java/benchmark export-ignore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cec6b77502..c8e692fd92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,10 +102,6 @@ jobs: with: java-version: 8 distribution: 'temurin' - - name: Install fury-benchmark jar - run: | - cd java && mvn -T10 -B --no-transfer-progress clean install -DskipTests && cd - - cd java/fury-benchmark && mvn -T10 -B --no-transfer-progress clean install -DskipTests -Pjmh && cd - - name: Run CI run: ./ci/run_ci.sh integration_tests diff --git a/NOTICE b/NOTICE index 3c12118c90..22a89703d0 100644 --- a/NOTICE +++ b/NOTICE @@ -39,7 +39,7 @@ The text of each license is the standard Apache 2.0 license. * fast-serialization (https://github.com/RuedigerMoeller/fast-serialization) Files: - java/fury-benchmark/src/main/java/org/apache/fury/benchmark/Identity2IdMap.java + java/benchmark/src/main/java/org/apache/fury/benchmark/Identity2IdMap.java * ray (https://github.com/ray-project/ray) Files: @@ -54,13 +54,13 @@ The text of each license is also included in licenses/LICENSE-[project].txt. * kryo (https://github.com/EsotericSoftware/kryo) Files: - java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Data.java - java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Image.java - java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Media.java - java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/MediaContent.java - java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Sample.java - java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/BufferType.java - java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/KryoState.java + java/benchmark/src/main/java/org/apache/fury/benchmark/data/Data.java + java/benchmark/src/main/java/org/apache/fury/benchmark/data/Image.java + java/benchmark/src/main/java/org/apache/fury/benchmark/data/Media.java + java/benchmark/src/main/java/org/apache/fury/benchmark/data/MediaContent.java + java/benchmark/src/main/java/org/apache/fury/benchmark/data/Sample.java + java/benchmark/src/main/java/org/apache/fury/benchmark/state/BufferType.java + java/benchmark/src/main/java/org/apache/fury/benchmark/state/KryoState.java java/fury-core/src/main/java/org/apache/fury/collection/FuryObjectMap.java java/fury-core/src/main/java/org/apache/fury/collection/IdentityMap.java java/fury-core/src/main/java/org/apache/fury/collection/IdentityObjectIntMap.java diff --git a/ci/deploy.sh b/ci/deploy.sh index e5d1ad4011..e3eddb2d36 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -84,7 +84,7 @@ bump_java_version() { cd "$ROOT/java" echo "Set fury java version to $version" mvn versions:set -DnewVersion="$version" - cd "$ROOT/java/fury-benchmark" + cd "$ROOT/java/benchmark" mvn versions:set -DnewVersion="$version" echo "Set fury integration_tests version to $version" cd "$ROOT/integration_tests/jdk_compatibility_tests" diff --git a/ci/format.sh b/ci/format.sh index 54750890b0..3df6ad6f99 100755 --- a/ci/format.sh +++ b/ci/format.sh @@ -185,7 +185,7 @@ format_java() { cd "$ROOT/java" mvn -T10 --no-transfer-progress spotless:apply mvn -T10 --no-transfer-progress checkstyle:check - cd "$ROOT/java/fury-benchmark" + cd "$ROOT/java/benchmark" mvn -T10 --no-transfer-progress spotless:apply cd "$ROOT/integration_tests" dirs=("graalvm_tests" "jdk_compatibility_tests" "latest_jdk_tests") diff --git a/ci/run_ci.sh b/ci/run_ci.sh index 52b8a87a91..611237967e 100755 --- a/ci/run_ci.sh +++ b/ci/run_ci.sh @@ -110,7 +110,7 @@ integration_tests() { cd "$ROOT"/java mvn -T10 -B --no-transfer-progress clean install -DskipTests echo "benchmark tests" - cd "$ROOT"/java/fury-benchmark + cd "$ROOT"/java/benchmark mvn -T10 -B --no-transfer-progress clean test -Pjmh echo "Start latest jdk tests" cd "$ROOT"/integration_tests/latest_jdk_tests diff --git a/integration_tests/jdk_compatibility_tests/pom.xml b/integration_tests/jdk_compatibility_tests/pom.xml index 4c09dc3254..33a42d80c0 100644 --- a/integration_tests/jdk_compatibility_tests/pom.xml +++ b/integration_tests/jdk_compatibility_tests/pom.xml @@ -40,7 +40,7 @@ org.apache.fury - fury-benchmark + benchmark ${project.version} @@ -66,4 +66,4 @@ - \ No newline at end of file + diff --git a/java/fury-benchmark/README.md b/java/benchmark/README.md similarity index 100% rename from java/fury-benchmark/README.md rename to java/benchmark/README.md diff --git a/java/fury-benchmark/analyze.py b/java/benchmark/analyze.py similarity index 100% rename from java/fury-benchmark/analyze.py rename to java/benchmark/analyze.py diff --git a/java/fury-benchmark/pom.xml b/java/benchmark/pom.xml similarity index 99% rename from java/fury-benchmark/pom.xml rename to java/benchmark/pom.xml index 6b7c5e5c87..1e2230dfff 100644 --- a/java/fury-benchmark/pom.xml +++ b/java/benchmark/pom.xml @@ -29,7 +29,7 @@ 0.5.0-SNAPSHOT - fury-benchmark + benchmark jar diff --git a/java/fury-benchmark/runtest.sh b/java/benchmark/runtest.sh similarity index 100% rename from java/fury-benchmark/runtest.sh rename to java/benchmark/runtest.sh diff --git a/java/fury-benchmark/runtest_jdk11.sh b/java/benchmark/runtest_jdk11.sh similarity index 100% rename from java/fury-benchmark/runtest_jdk11.sh rename to java/benchmark/runtest_jdk11.sh diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/ArraySuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/ArraySuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/ArraySuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/ArraySuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/Benchmark.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/Benchmark.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/Benchmark.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/Benchmark.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/CollectionSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/CollectionSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/CollectionSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/CollectionSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/CompressStringSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/CompressStringSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/CompressStringSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/CompressStringSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/Identity2IdMap.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/Identity2IdMap.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/Identity2IdMap.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/Identity2IdMap.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/IntsDeserializationSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/IntsDeserializationSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/IntsDeserializationSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/IntsDeserializationSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/IntsSerializationSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/IntsSerializationSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/IntsSerializationSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/IntsSerializationSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/LongStringDeserializationSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/LongStringDeserializationSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/LongStringDeserializationSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/LongStringDeserializationSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/LongStringSerializationSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/LongStringSerializationSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/LongStringSerializationSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/LongStringSerializationSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/LongsDeserializationSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/LongsDeserializationSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/LongsDeserializationSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/LongsDeserializationSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/LongsSerializationSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/LongsSerializationSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/LongsSerializationSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/LongsSerializationSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/MapSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/MapSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/MapSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/MapSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/MemorySuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/MemorySuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/MemorySuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/MemorySuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/NewJava11StringSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/NewJava11StringSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/NewJava11StringSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/NewJava11StringSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/NewStringSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/NewStringSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/NewStringSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/NewStringSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/RowSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/RowSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/RowSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/RowSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/StringDeserializationSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/StringDeserializationSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/StringDeserializationSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/StringDeserializationSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/StringSerializationSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/StringSerializationSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/StringSerializationSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/StringSerializationSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/UserTypeDeserializeSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/UserTypeDeserializeSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/UserTypeDeserializeSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/UserTypeDeserializeSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/UserTypeSerializeSuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/UserTypeSerializeSuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/UserTypeSerializeSuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/UserTypeSerializeSuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/ZeroCopySuite.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/ZeroCopySuite.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/ZeroCopySuite.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/ZeroCopySuite.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/ComparableByteArray.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/data/ComparableByteArray.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/ComparableByteArray.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/data/ComparableByteArray.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/CustomJDKSerialization.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/data/CustomJDKSerialization.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/CustomJDKSerialization.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/data/CustomJDKSerialization.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Data.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/data/Data.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Data.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/data/Data.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Image.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/data/Image.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Image.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/data/Image.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Media.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/data/Media.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Media.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/data/Media.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/MediaContent.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/data/MediaContent.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/MediaContent.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/data/MediaContent.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Sample.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/data/Sample.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Sample.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/data/Sample.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/SerializableByteBuffer.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/data/SerializableByteBuffer.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/SerializableByteBuffer.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/data/SerializableByteBuffer.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Struct.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/data/Struct.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Struct.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/data/Struct.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/BenchmarkState.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/state/BenchmarkState.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/BenchmarkState.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/state/BenchmarkState.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/BufferType.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/state/BufferType.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/BufferType.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/state/BufferType.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/Example.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/state/Example.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/Example.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/state/Example.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/FlatBuffersState.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/state/FlatBuffersState.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/FlatBuffersState.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/state/FlatBuffersState.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/FstState.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/state/FstState.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/FstState.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/state/FstState.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/FuryState.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/state/FuryState.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/FuryState.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/state/FuryState.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/HessionState.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/state/HessionState.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/HessionState.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/state/HessionState.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/JDKState.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/state/JDKState.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/JDKState.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/state/JDKState.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/JsonbState.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/state/JsonbState.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/JsonbState.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/state/JsonbState.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/KryoState.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/state/KryoState.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/KryoState.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/state/KryoState.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/ObjectType.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/state/ObjectType.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/ObjectType.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/state/ObjectType.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/ProtoBuffersState.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/state/ProtoBuffersState.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/ProtoBuffersState.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/state/ProtoBuffersState.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/ProtostuffState.java b/java/benchmark/src/main/java/org/apache/fury/benchmark/state/ProtostuffState.java similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/ProtostuffState.java rename to java/benchmark/src/main/java/org/apache/fury/benchmark/state/ProtostuffState.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/bench.fbs b/java/benchmark/src/main/java/org/apache/fury/benchmark/state/bench.fbs similarity index 100% rename from java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/bench.fbs rename to java/benchmark/src/main/java/org/apache/fury/benchmark/state/bench.fbs diff --git a/java/fury-benchmark/src/main/proto/bench.proto b/java/benchmark/src/main/proto/bench.proto similarity index 100% rename from java/fury-benchmark/src/main/proto/bench.proto rename to java/benchmark/src/main/proto/bench.proto diff --git a/java/fury-benchmark/src/test/java/org/apache/fury/benchmark/state/FlatBuffersStateTest.java b/java/benchmark/src/test/java/org/apache/fury/benchmark/state/FlatBuffersStateTest.java similarity index 100% rename from java/fury-benchmark/src/test/java/org/apache/fury/benchmark/state/FlatBuffersStateTest.java rename to java/benchmark/src/test/java/org/apache/fury/benchmark/state/FlatBuffersStateTest.java diff --git a/java/fury-benchmark/src/test/java/org/apache/fury/benchmark/state/ProtoBuffersStateTest.java b/java/benchmark/src/test/java/org/apache/fury/benchmark/state/ProtoBuffersStateTest.java similarity index 100% rename from java/fury-benchmark/src/test/java/org/apache/fury/benchmark/state/ProtoBuffersStateTest.java rename to java/benchmark/src/test/java/org/apache/fury/benchmark/state/ProtoBuffersStateTest.java diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSBar.java b/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSBar.java deleted file mode 100644 index bf787625b2..0000000000 --- a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSBar.java +++ /dev/null @@ -1,117 +0,0 @@ -// automatically generated by the FlatBuffers compiler, do not modify - -package org.apache.fury.benchmark.state.generated; - -import java.nio.*; -import java.lang.*; - -import com.google.flatbuffers.*; - -@SuppressWarnings("unused") -public final class FBSBar extends Table { - public static void ValidateVersion() { Constants.FLATBUFFERS_2_0_0(); } - public static FBSBar getRootAsFBSBar(ByteBuffer _bb) { return getRootAsFBSBar(_bb, new FBSBar()); } - public static FBSBar getRootAsFBSBar(ByteBuffer _bb, FBSBar 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 FBSBar __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public FBSFoo f1() { return f1(new FBSFoo()); } - public FBSFoo f1(FBSFoo obj) { int o = __offset(4); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; } - public String f2() { int o = __offset(6); return o != 0 ? __string(o + bb_pos) : null; } - public ByteBuffer f2AsByteBuffer() { return __vector_as_bytebuffer(6, 1); } - public ByteBuffer f2InByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 6, 1); } - public FBSFoo f3(int j) { return f3(new FBSFoo(), j); } - public FBSFoo f3(FBSFoo obj, int j) { int o = __offset(8); return o != 0 ? obj.__assign(__indirect(__vector(o) + j * 4), bb) : null; } - public int f3Length() { int o = __offset(8); return o != 0 ? __vector_len(o) : 0; } - public FBSFoo.Vector f3Vector() { return f3Vector(new FBSFoo.Vector()); } - public FBSFoo.Vector f3Vector(FBSFoo.Vector obj) { int o = __offset(8); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; } - public int f4Key(int j) { int o = __offset(10); return o != 0 ? bb.getInt(__vector(o) + j * 4) : 0; } - public int f4KeyLength() { int o = __offset(10); return o != 0 ? __vector_len(o) : 0; } - public IntVector f4KeyVector() { return f4KeyVector(new IntVector()); } - public IntVector f4KeyVector(IntVector obj) { int o = __offset(10); return o != 0 ? obj.__assign(__vector(o), bb) : null; } - public ByteBuffer f4KeyAsByteBuffer() { return __vector_as_bytebuffer(10, 4); } - public ByteBuffer f4KeyInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 10, 4); } - public FBSFoo f4Value(int j) { return f4Value(new FBSFoo(), j); } - public FBSFoo f4Value(FBSFoo obj, int j) { int o = __offset(12); return o != 0 ? obj.__assign(__indirect(__vector(o) + j * 4), bb) : null; } - public int f4ValueLength() { int o = __offset(12); return o != 0 ? __vector_len(o) : 0; } - public FBSFoo.Vector f4ValueVector() { return f4ValueVector(new FBSFoo.Vector()); } - public FBSFoo.Vector f4ValueVector(FBSFoo.Vector obj) { int o = __offset(12); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; } - public int f5() { int o = __offset(14); return o != 0 ? bb.getInt(o + bb_pos) : 0; } - public long f6() { int o = __offset(16); return o != 0 ? bb.getLong(o + bb_pos) : 0L; } - public float f7() { int o = __offset(18); return o != 0 ? bb.getFloat(o + bb_pos) : 0.0f; } - public double f8() { int o = __offset(20); return o != 0 ? bb.getDouble(o + bb_pos) : 0.0; } - public short f9(int j) { int o = __offset(22); return o != 0 ? bb.getShort(__vector(o) + j * 2) : 0; } - public int f9Length() { int o = __offset(22); return o != 0 ? __vector_len(o) : 0; } - public ShortVector f9Vector() { return f9Vector(new ShortVector()); } - public ShortVector f9Vector(ShortVector obj) { int o = __offset(22); return o != 0 ? obj.__assign(__vector(o), bb) : null; } - public ByteBuffer f9AsByteBuffer() { return __vector_as_bytebuffer(22, 2); } - public ByteBuffer f9InByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 22, 2); } - public long f10(int j) { int o = __offset(24); return o != 0 ? bb.getLong(__vector(o) + j * 8) : 0; } - public int f10Length() { int o = __offset(24); return o != 0 ? __vector_len(o) : 0; } - public LongVector f10Vector() { return f10Vector(new LongVector()); } - public LongVector f10Vector(LongVector obj) { int o = __offset(24); return o != 0 ? obj.__assign(__vector(o), bb) : null; } - public ByteBuffer f10AsByteBuffer() { return __vector_as_bytebuffer(24, 8); } - public ByteBuffer f10InByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 24, 8); } - - public static int createFBSBar(FlatBufferBuilder builder, - int f1Offset, - int f2Offset, - int f3Offset, - int f4_keyOffset, - int f4_valueOffset, - int f5, - long f6, - float f7, - double f8, - int f9Offset, - int f10Offset) { - builder.startTable(11); - FBSBar.addF8(builder, f8); - FBSBar.addF6(builder, f6); - FBSBar.addF10(builder, f10Offset); - FBSBar.addF9(builder, f9Offset); - FBSBar.addF7(builder, f7); - FBSBar.addF5(builder, f5); - FBSBar.addF4Value(builder, f4_valueOffset); - FBSBar.addF4Key(builder, f4_keyOffset); - FBSBar.addF3(builder, f3Offset); - FBSBar.addF2(builder, f2Offset); - FBSBar.addF1(builder, f1Offset); - return FBSBar.endFBSBar(builder); - } - - public static void startFBSBar(FlatBufferBuilder builder) { builder.startTable(11); } - public static void addF1(FlatBufferBuilder builder, int f1Offset) { builder.addOffset(0, f1Offset, 0); } - public static void addF2(FlatBufferBuilder builder, int f2Offset) { builder.addOffset(1, f2Offset, 0); } - public static void addF3(FlatBufferBuilder builder, int f3Offset) { builder.addOffset(2, f3Offset, 0); } - public static int createF3Vector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); } - public static void startF3Vector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); } - public static void addF4Key(FlatBufferBuilder builder, int f4KeyOffset) { builder.addOffset(3, f4KeyOffset, 0); } - public static int createF4KeyVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addInt(data[i]); return builder.endVector(); } - public static void startF4KeyVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); } - public static void addF4Value(FlatBufferBuilder builder, int f4ValueOffset) { builder.addOffset(4, f4ValueOffset, 0); } - public static int createF4ValueVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); } - public static void startF4ValueVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); } - public static void addF5(FlatBufferBuilder builder, int f5) { builder.addInt(5, f5, 0); } - public static void addF6(FlatBufferBuilder builder, long f6) { builder.addLong(6, f6, 0L); } - public static void addF7(FlatBufferBuilder builder, float f7) { builder.addFloat(7, f7, 0.0f); } - public static void addF8(FlatBufferBuilder builder, double f8) { builder.addDouble(8, f8, 0.0); } - public static void addF9(FlatBufferBuilder builder, int f9Offset) { builder.addOffset(9, f9Offset, 0); } - public static int createF9Vector(FlatBufferBuilder builder, short[] data) { builder.startVector(2, data.length, 2); for (int i = data.length - 1; i >= 0; i--) builder.addShort(data[i]); return builder.endVector(); } - public static void startF9Vector(FlatBufferBuilder builder, int numElems) { builder.startVector(2, numElems, 2); } - public static void addF10(FlatBufferBuilder builder, int f10Offset) { builder.addOffset(10, f10Offset, 0); } - public static int createF10Vector(FlatBufferBuilder builder, long[] data) { builder.startVector(8, data.length, 8); for (int i = data.length - 1; i >= 0; i--) builder.addLong(data[i]); return builder.endVector(); } - public static void startF10Vector(FlatBufferBuilder builder, int numElems) { builder.startVector(8, numElems, 8); } - public static int endFBSBar(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 FBSBar get(int j) { return get(new FBSBar(), j); } - public FBSBar get(FBSBar obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } - } -} - diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSFoo.java b/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSFoo.java deleted file mode 100644 index 73407a48a1..0000000000 --- a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSFoo.java +++ /dev/null @@ -1,63 +0,0 @@ -// automatically generated by the FlatBuffers compiler, do not modify - -package org.apache.fury.benchmark.state.generated; - -import java.nio.*; -import java.lang.*; - -import com.google.flatbuffers.*; - -@SuppressWarnings("unused") -public final class FBSFoo extends Table { - public static void ValidateVersion() { Constants.FLATBUFFERS_2_0_0(); } - public static FBSFoo getRootAsFBSFoo(ByteBuffer _bb) { return getRootAsFBSFoo(_bb, new FBSFoo()); } - public static FBSFoo getRootAsFBSFoo(ByteBuffer _bb, FBSFoo 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 FBSFoo __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public String string() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; } - public ByteBuffer stringAsByteBuffer() { return __vector_as_bytebuffer(4, 1); } - public ByteBuffer stringInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 4, 1); } - public String f2Key(int j) { int o = __offset(6); return o != 0 ? __string(__vector(o) + j * 4) : null; } - public int f2KeyLength() { int o = __offset(6); return o != 0 ? __vector_len(o) : 0; } - public StringVector f2KeyVector() { return f2KeyVector(new StringVector()); } - public StringVector f2KeyVector(StringVector obj) { int o = __offset(6); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; } - public int f2Value(int j) { int o = __offset(8); return o != 0 ? bb.getInt(__vector(o) + j * 4) : 0; } - public int f2ValueLength() { int o = __offset(8); return o != 0 ? __vector_len(o) : 0; } - public IntVector f2ValueVector() { return f2ValueVector(new IntVector()); } - public IntVector f2ValueVector(IntVector obj) { int o = __offset(8); return o != 0 ? obj.__assign(__vector(o), bb) : null; } - public ByteBuffer f2ValueAsByteBuffer() { return __vector_as_bytebuffer(8, 4); } - public ByteBuffer f2ValueInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 8, 4); } - - public static int createFBSFoo(FlatBufferBuilder builder, - int stringOffset, - int f2_keyOffset, - int f2_valueOffset) { - builder.startTable(3); - FBSFoo.addF2Value(builder, f2_valueOffset); - FBSFoo.addF2Key(builder, f2_keyOffset); - FBSFoo.addString(builder, stringOffset); - return FBSFoo.endFBSFoo(builder); - } - - public static void startFBSFoo(FlatBufferBuilder builder) { builder.startTable(3); } - public static void addString(FlatBufferBuilder builder, int stringOffset) { builder.addOffset(0, stringOffset, 0); } - public static void addF2Key(FlatBufferBuilder builder, int f2KeyOffset) { builder.addOffset(1, f2KeyOffset, 0); } - public static int createF2KeyVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); } - public static void startF2KeyVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); } - public static void addF2Value(FlatBufferBuilder builder, int f2ValueOffset) { builder.addOffset(2, f2ValueOffset, 0); } - public static int createF2ValueVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addInt(data[i]); return builder.endVector(); } - public static void startF2ValueVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); } - public static int endFBSFoo(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 FBSFoo get(int j) { return get(new FBSFoo(), j); } - public FBSFoo get(FBSFoo obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } - } -} - diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSImage.java b/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSImage.java deleted file mode 100644 index 1fb090d574..0000000000 --- a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSImage.java +++ /dev/null @@ -1,66 +0,0 @@ -// automatically generated by the FlatBuffers compiler, do not modify - -package org.apache.fury.benchmark.state.generated; - -import java.nio.*; -import java.lang.*; - -import com.google.flatbuffers.*; - -@SuppressWarnings("unused") -public final class FBSImage extends Table { - public static void ValidateVersion() { Constants.FLATBUFFERS_2_0_0(); } - public static FBSImage getRootAsFBSImage(ByteBuffer _bb) { return getRootAsFBSImage(_bb, new FBSImage()); } - public static FBSImage getRootAsFBSImage(ByteBuffer _bb, FBSImage 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 FBSImage __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public String uri() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; } - public ByteBuffer uriAsByteBuffer() { return __vector_as_bytebuffer(4, 1); } - public ByteBuffer uriInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 4, 1); } - public String title() { int o = __offset(6); return o != 0 ? __string(o + bb_pos) : null; } - public ByteBuffer titleAsByteBuffer() { return __vector_as_bytebuffer(6, 1); } - public ByteBuffer titleInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 6, 1); } - public int width() { int o = __offset(8); return o != 0 ? bb.getInt(o + bb_pos) : 0; } - public int height() { int o = __offset(10); return o != 0 ? bb.getInt(o + bb_pos) : 0; } - public byte size() { int o = __offset(12); return o != 0 ? bb.get(o + bb_pos) : 0; } - public FBSMedia media() { return media(new FBSMedia()); } - public FBSMedia media(FBSMedia obj) { int o = __offset(14); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; } - - public static int createFBSImage(FlatBufferBuilder builder, - int uriOffset, - int titleOffset, - int width, - int height, - byte size, - int mediaOffset) { - builder.startTable(6); - FBSImage.addMedia(builder, mediaOffset); - FBSImage.addHeight(builder, height); - FBSImage.addWidth(builder, width); - FBSImage.addTitle(builder, titleOffset); - FBSImage.addUri(builder, uriOffset); - FBSImage.addSize(builder, size); - return FBSImage.endFBSImage(builder); - } - - public static void startFBSImage(FlatBufferBuilder builder) { builder.startTable(6); } - public static void addUri(FlatBufferBuilder builder, int uriOffset) { builder.addOffset(0, uriOffset, 0); } - public static void addTitle(FlatBufferBuilder builder, int titleOffset) { builder.addOffset(1, titleOffset, 0); } - public static void addWidth(FlatBufferBuilder builder, int width) { builder.addInt(2, width, 0); } - public static void addHeight(FlatBufferBuilder builder, int height) { builder.addInt(3, height, 0); } - public static void addSize(FlatBufferBuilder builder, byte size) { builder.addByte(4, size, 0); } - public static void addMedia(FlatBufferBuilder builder, int mediaOffset) { builder.addOffset(5, mediaOffset, 0); } - public static int endFBSImage(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 FBSImage get(int j) { return get(new FBSImage(), j); } - public FBSImage get(FBSImage obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } - } -} - diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSMedia.java b/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSMedia.java deleted file mode 100644 index 1670001ef3..0000000000 --- a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSMedia.java +++ /dev/null @@ -1,98 +0,0 @@ -// automatically generated by the FlatBuffers compiler, do not modify - -package org.apache.fury.benchmark.state.generated; - -import java.nio.*; -import java.lang.*; - -import com.google.flatbuffers.*; - -@SuppressWarnings("unused") -public final class FBSMedia extends Table { - public static void ValidateVersion() { Constants.FLATBUFFERS_2_0_0(); } - public static FBSMedia getRootAsFBSMedia(ByteBuffer _bb) { return getRootAsFBSMedia(_bb, new FBSMedia()); } - public static FBSMedia getRootAsFBSMedia(ByteBuffer _bb, FBSMedia 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 FBSMedia __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public String uri() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; } - public ByteBuffer uriAsByteBuffer() { return __vector_as_bytebuffer(4, 1); } - public ByteBuffer uriInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 4, 1); } - public String title() { int o = __offset(6); return o != 0 ? __string(o + bb_pos) : null; } - public ByteBuffer titleAsByteBuffer() { return __vector_as_bytebuffer(6, 1); } - public ByteBuffer titleInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 6, 1); } - public int width() { int o = __offset(8); return o != 0 ? bb.getInt(o + bb_pos) : 0; } - public int height() { int o = __offset(10); return o != 0 ? bb.getInt(o + bb_pos) : 0; } - public String format() { int o = __offset(12); return o != 0 ? __string(o + bb_pos) : null; } - public ByteBuffer formatAsByteBuffer() { return __vector_as_bytebuffer(12, 1); } - public ByteBuffer formatInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 12, 1); } - public long duration() { int o = __offset(14); return o != 0 ? bb.getLong(o + bb_pos) : 0L; } - public long size() { int o = __offset(16); return o != 0 ? bb.getLong(o + bb_pos) : 0L; } - public int bitrate() { int o = __offset(18); return o != 0 ? bb.getInt(o + bb_pos) : 0; } - public boolean hasBitrate() { int o = __offset(20); return o != 0 ? 0!=bb.get(o + bb_pos) : false; } - public String persons(int j) { int o = __offset(22); return o != 0 ? __string(__vector(o) + j * 4) : null; } - public int personsLength() { int o = __offset(22); return o != 0 ? __vector_len(o) : 0; } - public StringVector personsVector() { return personsVector(new StringVector()); } - public StringVector personsVector(StringVector obj) { int o = __offset(22); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; } - public byte player() { int o = __offset(24); return o != 0 ? bb.get(o + bb_pos) : 0; } - public String copyright() { int o = __offset(26); return o != 0 ? __string(o + bb_pos) : null; } - public ByteBuffer copyrightAsByteBuffer() { return __vector_as_bytebuffer(26, 1); } - public ByteBuffer copyrightInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 26, 1); } - - public static int createFBSMedia(FlatBufferBuilder builder, - int uriOffset, - int titleOffset, - int width, - int height, - int formatOffset, - long duration, - long size, - int bitrate, - boolean has_bitrate, - int personsOffset, - byte player, - int copyrightOffset) { - builder.startTable(12); - FBSMedia.addSize(builder, size); - FBSMedia.addDuration(builder, duration); - FBSMedia.addCopyright(builder, copyrightOffset); - FBSMedia.addPersons(builder, personsOffset); - FBSMedia.addBitrate(builder, bitrate); - FBSMedia.addFormat(builder, formatOffset); - FBSMedia.addHeight(builder, height); - FBSMedia.addWidth(builder, width); - FBSMedia.addTitle(builder, titleOffset); - FBSMedia.addUri(builder, uriOffset); - FBSMedia.addPlayer(builder, player); - FBSMedia.addHasBitrate(builder, has_bitrate); - return FBSMedia.endFBSMedia(builder); - } - - public static void startFBSMedia(FlatBufferBuilder builder) { builder.startTable(12); } - public static void addUri(FlatBufferBuilder builder, int uriOffset) { builder.addOffset(0, uriOffset, 0); } - public static void addTitle(FlatBufferBuilder builder, int titleOffset) { builder.addOffset(1, titleOffset, 0); } - public static void addWidth(FlatBufferBuilder builder, int width) { builder.addInt(2, width, 0); } - public static void addHeight(FlatBufferBuilder builder, int height) { builder.addInt(3, height, 0); } - public static void addFormat(FlatBufferBuilder builder, int formatOffset) { builder.addOffset(4, formatOffset, 0); } - public static void addDuration(FlatBufferBuilder builder, long duration) { builder.addLong(5, duration, 0L); } - public static void addSize(FlatBufferBuilder builder, long size) { builder.addLong(6, size, 0L); } - public static void addBitrate(FlatBufferBuilder builder, int bitrate) { builder.addInt(7, bitrate, 0); } - public static void addHasBitrate(FlatBufferBuilder builder, boolean hasBitrate) { builder.addBoolean(8, hasBitrate, false); } - public static void addPersons(FlatBufferBuilder builder, int personsOffset) { builder.addOffset(9, personsOffset, 0); } - public static int createPersonsVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); } - public static void startPersonsVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); } - public static void addPlayer(FlatBufferBuilder builder, byte player) { builder.addByte(10, player, 0); } - public static void addCopyright(FlatBufferBuilder builder, int copyrightOffset) { builder.addOffset(11, copyrightOffset, 0); } - public static int endFBSMedia(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 FBSMedia get(int j) { return get(new FBSMedia(), j); } - public FBSMedia get(FBSMedia obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } - } -} - diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSMediaContent.java b/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSMediaContent.java deleted file mode 100644 index f5b728a639..0000000000 --- a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSMediaContent.java +++ /dev/null @@ -1,52 +0,0 @@ -// automatically generated by the FlatBuffers compiler, do not modify - -package org.apache.fury.benchmark.state.generated; - -import java.nio.*; -import java.lang.*; - -import com.google.flatbuffers.*; - -@SuppressWarnings("unused") -public final class FBSMediaContent extends Table { - public static void ValidateVersion() { Constants.FLATBUFFERS_2_0_0(); } - public static FBSMediaContent getRootAsFBSMediaContent(ByteBuffer _bb) { return getRootAsFBSMediaContent(_bb, new FBSMediaContent()); } - public static FBSMediaContent getRootAsFBSMediaContent(ByteBuffer _bb, FBSMediaContent 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 FBSMediaContent __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public FBSMedia media() { return media(new FBSMedia()); } - public FBSMedia media(FBSMedia obj) { int o = __offset(4); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; } - public FBSImage images(int j) { return images(new FBSImage(), j); } - public FBSImage images(FBSImage obj, int j) { int o = __offset(6); return o != 0 ? obj.__assign(__indirect(__vector(o) + j * 4), bb) : null; } - public int imagesLength() { int o = __offset(6); return o != 0 ? __vector_len(o) : 0; } - public FBSImage.Vector imagesVector() { return imagesVector(new FBSImage.Vector()); } - public FBSImage.Vector imagesVector(FBSImage.Vector obj) { int o = __offset(6); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; } - - public static int createFBSMediaContent(FlatBufferBuilder builder, - int mediaOffset, - int imagesOffset) { - builder.startTable(2); - FBSMediaContent.addImages(builder, imagesOffset); - FBSMediaContent.addMedia(builder, mediaOffset); - return FBSMediaContent.endFBSMediaContent(builder); - } - - public static void startFBSMediaContent(FlatBufferBuilder builder) { builder.startTable(2); } - public static void addMedia(FlatBufferBuilder builder, int mediaOffset) { builder.addOffset(0, mediaOffset, 0); } - public static void addImages(FlatBufferBuilder builder, int imagesOffset) { builder.addOffset(1, imagesOffset, 0); } - public static int createImagesVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); } - public static void startImagesVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); } - public static int endFBSMediaContent(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 FBSMediaContent get(int j) { return get(new FBSMediaContent(), j); } - public FBSMediaContent get(FBSMediaContent obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } - } -} - diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSPlayer.java b/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSPlayer.java deleted file mode 100644 index a082eabbff..0000000000 --- a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSPlayer.java +++ /dev/null @@ -1,14 +0,0 @@ -// automatically generated by the FlatBuffers compiler, do not modify - -package org.apache.fury.benchmark.state.generated; - -public final class FBSPlayer { - private FBSPlayer() { } - public static final byte JAVA = 0; - public static final byte FLASH = 1; - - public static final String[] names = { "JAVA", "FLASH", }; - - public static String name(int e) { return names[e]; } -} - diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSSample.java b/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSSample.java deleted file mode 100644 index 7db81c2919..0000000000 --- a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSSample.java +++ /dev/null @@ -1,176 +0,0 @@ -// automatically generated by the FlatBuffers compiler, do not modify - -package org.apache.fury.benchmark.state.generated; - -import java.nio.*; -import java.lang.*; - -import com.google.flatbuffers.*; - -@SuppressWarnings("unused") -public final class FBSSample extends Table { - public static void ValidateVersion() { Constants.FLATBUFFERS_2_0_0(); } - public static FBSSample getRootAsFBSSample(ByteBuffer _bb) { return getRootAsFBSSample(_bb, new FBSSample()); } - public static FBSSample getRootAsFBSSample(ByteBuffer _bb, FBSSample 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 FBSSample __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public int intValue() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } - public long longValue() { int o = __offset(6); return o != 0 ? bb.getLong(o + bb_pos) : 0L; } - public float floatValue() { int o = __offset(8); return o != 0 ? bb.getFloat(o + bb_pos) : 0.0f; } - public double doubleValue() { int o = __offset(10); return o != 0 ? bb.getDouble(o + bb_pos) : 0.0; } - public short shortValue() { int o = __offset(12); return o != 0 ? bb.getShort(o + bb_pos) : 0; } - public short charValue() { int o = __offset(14); return o != 0 ? bb.getShort(o + bb_pos) : 0; } - public boolean booleanValue() { int o = __offset(16); return o != 0 ? 0!=bb.get(o + bb_pos) : false; } - public int intValueBoxed() { int o = __offset(18); return o != 0 ? bb.getInt(o + bb_pos) : 0; } - public long longValueBoxed() { int o = __offset(20); return o != 0 ? bb.getLong(o + bb_pos) : 0L; } - public float floatValueBoxed() { int o = __offset(22); return o != 0 ? bb.getFloat(o + bb_pos) : 0.0f; } - public double doubleValueBoxed() { int o = __offset(24); return o != 0 ? bb.getDouble(o + bb_pos) : 0.0; } - public short shortValueBoxed() { int o = __offset(26); return o != 0 ? bb.getShort(o + bb_pos) : 0; } - public short charValueBoxed() { int o = __offset(28); return o != 0 ? bb.getShort(o + bb_pos) : 0; } - public boolean booleanValueBoxed() { int o = __offset(30); return o != 0 ? 0!=bb.get(o + bb_pos) : false; } - public int intArray(int j) { int o = __offset(32); return o != 0 ? bb.getInt(__vector(o) + j * 4) : 0; } - public int intArrayLength() { int o = __offset(32); return o != 0 ? __vector_len(o) : 0; } - public IntVector intArrayVector() { return intArrayVector(new IntVector()); } - public IntVector intArrayVector(IntVector obj) { int o = __offset(32); return o != 0 ? obj.__assign(__vector(o), bb) : null; } - public ByteBuffer intArrayAsByteBuffer() { return __vector_as_bytebuffer(32, 4); } - public ByteBuffer intArrayInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 32, 4); } - public long longArray(int j) { int o = __offset(34); return o != 0 ? bb.getLong(__vector(o) + j * 8) : 0; } - public int longArrayLength() { int o = __offset(34); return o != 0 ? __vector_len(o) : 0; } - public LongVector longArrayVector() { return longArrayVector(new LongVector()); } - public LongVector longArrayVector(LongVector obj) { int o = __offset(34); return o != 0 ? obj.__assign(__vector(o), bb) : null; } - public ByteBuffer longArrayAsByteBuffer() { return __vector_as_bytebuffer(34, 8); } - public ByteBuffer longArrayInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 34, 8); } - public float floatArray(int j) { int o = __offset(36); return o != 0 ? bb.getFloat(__vector(o) + j * 4) : 0; } - public int floatArrayLength() { int o = __offset(36); return o != 0 ? __vector_len(o) : 0; } - public FloatVector floatArrayVector() { return floatArrayVector(new FloatVector()); } - public FloatVector floatArrayVector(FloatVector obj) { int o = __offset(36); return o != 0 ? obj.__assign(__vector(o), bb) : null; } - public ByteBuffer floatArrayAsByteBuffer() { return __vector_as_bytebuffer(36, 4); } - public ByteBuffer floatArrayInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 36, 4); } - public double doubleArray(int j) { int o = __offset(38); return o != 0 ? bb.getDouble(__vector(o) + j * 8) : 0; } - public int doubleArrayLength() { int o = __offset(38); return o != 0 ? __vector_len(o) : 0; } - public DoubleVector doubleArrayVector() { return doubleArrayVector(new DoubleVector()); } - public DoubleVector doubleArrayVector(DoubleVector obj) { int o = __offset(38); return o != 0 ? obj.__assign(__vector(o), bb) : null; } - public ByteBuffer doubleArrayAsByteBuffer() { return __vector_as_bytebuffer(38, 8); } - public ByteBuffer doubleArrayInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 38, 8); } - public short shortArray(int j) { int o = __offset(40); return o != 0 ? bb.getShort(__vector(o) + j * 2) : 0; } - public int shortArrayLength() { int o = __offset(40); return o != 0 ? __vector_len(o) : 0; } - public ShortVector shortArrayVector() { return shortArrayVector(new ShortVector()); } - public ShortVector shortArrayVector(ShortVector obj) { int o = __offset(40); return o != 0 ? obj.__assign(__vector(o), bb) : null; } - public ByteBuffer shortArrayAsByteBuffer() { return __vector_as_bytebuffer(40, 2); } - public ByteBuffer shortArrayInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 40, 2); } - public short charArray(int j) { int o = __offset(42); return o != 0 ? bb.getShort(__vector(o) + j * 2) : 0; } - public int charArrayLength() { int o = __offset(42); return o != 0 ? __vector_len(o) : 0; } - public ShortVector charArrayVector() { return charArrayVector(new ShortVector()); } - public ShortVector charArrayVector(ShortVector obj) { int o = __offset(42); return o != 0 ? obj.__assign(__vector(o), bb) : null; } - public ByteBuffer charArrayAsByteBuffer() { return __vector_as_bytebuffer(42, 2); } - public ByteBuffer charArrayInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 42, 2); } - public boolean booleanArray(int j) { int o = __offset(44); return o != 0 ? 0!=bb.get(__vector(o) + j * 1) : false; } - public int booleanArrayLength() { int o = __offset(44); return o != 0 ? __vector_len(o) : 0; } - public BooleanVector booleanArrayVector() { return booleanArrayVector(new BooleanVector()); } - public BooleanVector booleanArrayVector(BooleanVector obj) { int o = __offset(44); return o != 0 ? obj.__assign(__vector(o), bb) : null; } - public ByteBuffer booleanArrayAsByteBuffer() { return __vector_as_bytebuffer(44, 1); } - public ByteBuffer booleanArrayInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 44, 1); } - public String string() { int o = __offset(46); return o != 0 ? __string(o + bb_pos) : null; } - public ByteBuffer stringAsByteBuffer() { return __vector_as_bytebuffer(46, 1); } - public ByteBuffer stringInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 46, 1); } - - public static int createFBSSample(FlatBufferBuilder builder, - int int_value, - long long_value, - float float_value, - double double_value, - short short_value, - short char_value, - boolean boolean_value, - int int_value_boxed, - long long_value_boxed, - float float_value_boxed, - double double_value_boxed, - short short_value_boxed, - short char_value_boxed, - boolean boolean_value_boxed, - int int_arrayOffset, - int long_arrayOffset, - int float_arrayOffset, - int double_arrayOffset, - int short_arrayOffset, - int char_arrayOffset, - int boolean_arrayOffset, - int stringOffset) { - builder.startTable(22); - FBSSample.addDoubleValueBoxed(builder, double_value_boxed); - FBSSample.addLongValueBoxed(builder, long_value_boxed); - FBSSample.addDoubleValue(builder, double_value); - FBSSample.addLongValue(builder, long_value); - FBSSample.addString(builder, stringOffset); - FBSSample.addBooleanArray(builder, boolean_arrayOffset); - FBSSample.addCharArray(builder, char_arrayOffset); - FBSSample.addShortArray(builder, short_arrayOffset); - FBSSample.addDoubleArray(builder, double_arrayOffset); - FBSSample.addFloatArray(builder, float_arrayOffset); - FBSSample.addLongArray(builder, long_arrayOffset); - FBSSample.addIntArray(builder, int_arrayOffset); - FBSSample.addFloatValueBoxed(builder, float_value_boxed); - FBSSample.addIntValueBoxed(builder, int_value_boxed); - FBSSample.addFloatValue(builder, float_value); - FBSSample.addIntValue(builder, int_value); - FBSSample.addCharValueBoxed(builder, char_value_boxed); - FBSSample.addShortValueBoxed(builder, short_value_boxed); - FBSSample.addCharValue(builder, char_value); - FBSSample.addShortValue(builder, short_value); - FBSSample.addBooleanValueBoxed(builder, boolean_value_boxed); - FBSSample.addBooleanValue(builder, boolean_value); - return FBSSample.endFBSSample(builder); - } - - public static void startFBSSample(FlatBufferBuilder builder) { builder.startTable(22); } - public static void addIntValue(FlatBufferBuilder builder, int intValue) { builder.addInt(0, intValue, 0); } - public static void addLongValue(FlatBufferBuilder builder, long longValue) { builder.addLong(1, longValue, 0L); } - public static void addFloatValue(FlatBufferBuilder builder, float floatValue) { builder.addFloat(2, floatValue, 0.0f); } - public static void addDoubleValue(FlatBufferBuilder builder, double doubleValue) { builder.addDouble(3, doubleValue, 0.0); } - public static void addShortValue(FlatBufferBuilder builder, short shortValue) { builder.addShort(4, shortValue, 0); } - public static void addCharValue(FlatBufferBuilder builder, short charValue) { builder.addShort(5, charValue, 0); } - public static void addBooleanValue(FlatBufferBuilder builder, boolean booleanValue) { builder.addBoolean(6, booleanValue, false); } - public static void addIntValueBoxed(FlatBufferBuilder builder, int intValueBoxed) { builder.addInt(7, intValueBoxed, 0); } - public static void addLongValueBoxed(FlatBufferBuilder builder, long longValueBoxed) { builder.addLong(8, longValueBoxed, 0L); } - public static void addFloatValueBoxed(FlatBufferBuilder builder, float floatValueBoxed) { builder.addFloat(9, floatValueBoxed, 0.0f); } - public static void addDoubleValueBoxed(FlatBufferBuilder builder, double doubleValueBoxed) { builder.addDouble(10, doubleValueBoxed, 0.0); } - public static void addShortValueBoxed(FlatBufferBuilder builder, short shortValueBoxed) { builder.addShort(11, shortValueBoxed, 0); } - public static void addCharValueBoxed(FlatBufferBuilder builder, short charValueBoxed) { builder.addShort(12, charValueBoxed, 0); } - public static void addBooleanValueBoxed(FlatBufferBuilder builder, boolean booleanValueBoxed) { builder.addBoolean(13, booleanValueBoxed, false); } - public static void addIntArray(FlatBufferBuilder builder, int intArrayOffset) { builder.addOffset(14, intArrayOffset, 0); } - public static int createIntArrayVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addInt(data[i]); return builder.endVector(); } - public static void startIntArrayVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); } - public static void addLongArray(FlatBufferBuilder builder, int longArrayOffset) { builder.addOffset(15, longArrayOffset, 0); } - public static int createLongArrayVector(FlatBufferBuilder builder, long[] data) { builder.startVector(8, data.length, 8); for (int i = data.length - 1; i >= 0; i--) builder.addLong(data[i]); return builder.endVector(); } - public static void startLongArrayVector(FlatBufferBuilder builder, int numElems) { builder.startVector(8, numElems, 8); } - public static void addFloatArray(FlatBufferBuilder builder, int floatArrayOffset) { builder.addOffset(16, floatArrayOffset, 0); } - public static int createFloatArrayVector(FlatBufferBuilder builder, float[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addFloat(data[i]); return builder.endVector(); } - public static void startFloatArrayVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); } - public static void addDoubleArray(FlatBufferBuilder builder, int doubleArrayOffset) { builder.addOffset(17, doubleArrayOffset, 0); } - public static int createDoubleArrayVector(FlatBufferBuilder builder, double[] data) { builder.startVector(8, data.length, 8); for (int i = data.length - 1; i >= 0; i--) builder.addDouble(data[i]); return builder.endVector(); } - public static void startDoubleArrayVector(FlatBufferBuilder builder, int numElems) { builder.startVector(8, numElems, 8); } - public static void addShortArray(FlatBufferBuilder builder, int shortArrayOffset) { builder.addOffset(18, shortArrayOffset, 0); } - public static int createShortArrayVector(FlatBufferBuilder builder, short[] data) { builder.startVector(2, data.length, 2); for (int i = data.length - 1; i >= 0; i--) builder.addShort(data[i]); return builder.endVector(); } - public static void startShortArrayVector(FlatBufferBuilder builder, int numElems) { builder.startVector(2, numElems, 2); } - public static void addCharArray(FlatBufferBuilder builder, int charArrayOffset) { builder.addOffset(19, charArrayOffset, 0); } - public static int createCharArrayVector(FlatBufferBuilder builder, short[] data) { builder.startVector(2, data.length, 2); for (int i = data.length - 1; i >= 0; i--) builder.addShort(data[i]); return builder.endVector(); } - public static void startCharArrayVector(FlatBufferBuilder builder, int numElems) { builder.startVector(2, numElems, 2); } - public static void addBooleanArray(FlatBufferBuilder builder, int booleanArrayOffset) { builder.addOffset(20, booleanArrayOffset, 0); } - public static int createBooleanArrayVector(FlatBufferBuilder builder, boolean[] data) { builder.startVector(1, data.length, 1); for (int i = data.length - 1; i >= 0; i--) builder.addBoolean(data[i]); return builder.endVector(); } - public static void startBooleanArrayVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); } - public static void addString(FlatBufferBuilder builder, int stringOffset) { builder.addOffset(21, stringOffset, 0); } - public static int endFBSSample(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 FBSSample get(int j) { return get(new FBSSample(), j); } - public FBSSample get(FBSSample obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } - } -} - diff --git a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSSize.java b/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSSize.java deleted file mode 100644 index 96dd54bd7c..0000000000 --- a/java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/FBSSize.java +++ /dev/null @@ -1,14 +0,0 @@ -// automatically generated by the FlatBuffers compiler, do not modify - -package org.apache.fury.benchmark.state.generated; - -public final class FBSSize { - private FBSSize() { } - public static final byte SMALL = 0; - public static final byte LARGE = 1; - - public static final String[] names = { "SMALL", "LARGE", }; - - public static String name(int e) { return names[e]; } -} - diff --git a/licenserc.toml b/licenserc.toml index 1ef360ce4a..143f6ada2c 100644 --- a/licenserc.toml +++ b/licenserc.toml @@ -23,18 +23,18 @@ excludes = [ "go.sum", # Generated - "java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/generated/**", + "java/benchmark/src/main/java/org/apache/fury/benchmark/state/generated/**", # Derived "ci/format.sh", - "java/fury-benchmark/src/main/java/org/apache/fury/benchmark/Identity2IdMap.java", - "java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Data.java", - "java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Image.java", - "java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Media.java", - "java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/MediaContent.java", - "java/fury-benchmark/src/main/java/org/apache/fury/benchmark/data/Sample.java", - "java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/BufferType.java", - "java/fury-benchmark/src/main/java/org/apache/fury/benchmark/state/KryoState.java", + "java/benchmark/src/main/java/org/apache/fury/benchmark/Identity2IdMap.java", + "java/benchmark/src/main/java/org/apache/fury/benchmark/data/Data.java", + "java/benchmark/src/main/java/org/apache/fury/benchmark/data/Image.java", + "java/benchmark/src/main/java/org/apache/fury/benchmark/data/Media.java", + "java/benchmark/src/main/java/org/apache/fury/benchmark/data/MediaContent.java", + "java/benchmark/src/main/java/org/apache/fury/benchmark/data/Sample.java", + "java/benchmark/src/main/java/org/apache/fury/benchmark/state/BufferType.java", + "java/benchmark/src/main/java/org/apache/fury/benchmark/state/KryoState.java", "java/fury-core/src/main/java/org/apache/fury/codegen/Code.java", "java/fury-core/src/main/java/org/apache/fury/collection/FuryObjectMap.java", "java/fury-core/src/main/java/org/apache/fury/collection/IdentityMap.java",