This is an automated email from the ASF dual-hosted git repository.
kenhuuu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
The following commit(s) were added to refs/heads/master by this push:
new 8a1b2c8aa7 Rename GraphBinary4 serializer BYTEBUFFER to BINARY in
gremlin-driver CTR
8a1b2c8aa7 is described below
commit 8a1b2c8aa7ae8ca40ff4c1ba08295f6673d007ef
Author: Ken Hu <[email protected]>
AuthorDate: Mon Mar 30 13:24:01 2026 -0700
Rename GraphBinary4 serializer BYTEBUFFER to BINARY in gremlin-driver CTR
---
.../org/apache/tinkerpop/gremlin/structure/io/binary/DataType.java | 2 +-
.../gremlin/structure/io/binary/TypeSerializerRegistry.java | 4 ++--
.../types/{ByteBufferSerializer.java => BinarySerializer.java} | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/DataType.java
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/DataType.java
index 356c326230..7c2e347f6e 100644
---
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/DataType.java
+++
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/DataType.java
@@ -48,7 +48,7 @@ public enum DataType {
BIGDECIMAL(0X22),
BIGINTEGER(0X23),
BYTE(0X24),
- BYTEBUFFER(0X25),
+ BINARY(0X25),
SHORT(0X26),
BOOLEAN(0x27),
BULKSET(0X2A), // todo:
diff --git
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/TypeSerializerRegistry.java
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/TypeSerializerRegistry.java
index e7558037c1..f3d9921252 100644
---
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/TypeSerializerRegistry.java
+++
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/TypeSerializerRegistry.java
@@ -35,7 +35,7 @@ import org.apache.tinkerpop.gremlin.structure.io.IoRegistry;
import
org.apache.tinkerpop.gremlin.structure.io.binary.types.BigDecimalSerializer;
import
org.apache.tinkerpop.gremlin.structure.io.binary.types.BigIntegerSerializer;
import
org.apache.tinkerpop.gremlin.structure.io.binary.types.BulkSetSerializer;
-import
org.apache.tinkerpop.gremlin.structure.io.binary.types.ByteBufferSerializer;
+import org.apache.tinkerpop.gremlin.structure.io.binary.types.BinarySerializer;
import org.apache.tinkerpop.gremlin.structure.io.binary.types.CharSerializer;
import
org.apache.tinkerpop.gremlin.structure.io.binary.types.CustomTypeSerializer;
import
org.apache.tinkerpop.gremlin.structure.io.binary.types.DurationSerializer;
@@ -108,7 +108,7 @@ public class TypeSerializerRegistry {
new RegistryEntry<>(BigDecimal.class, new BigDecimalSerializer()),
new RegistryEntry<>(BigInteger.class, new BigIntegerSerializer()),
new RegistryEntry<>(Byte.class,
SingleTypeSerializer.ByteSerializer),
- new RegistryEntry<>(ByteBuffer.class, new ByteBufferSerializer()),
+ new RegistryEntry<>(ByteBuffer.class, new BinarySerializer()),
new RegistryEntry<>(Short.class,
SingleTypeSerializer.ShortSerializer),
new RegistryEntry<>(Boolean.class,
SingleTypeSerializer.BooleanSerializer),
new RegistryEntry<>(Tree.class, new TreeSerializer()),
diff --git
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/types/ByteBufferSerializer.java
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/types/BinarySerializer.java
similarity index 92%
rename from
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/types/ByteBufferSerializer.java
rename to
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/types/BinarySerializer.java
index 2037e142b1..1880b866c4 100644
---
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/types/ByteBufferSerializer.java
+++
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/types/BinarySerializer.java
@@ -29,10 +29,10 @@ import java.nio.ByteBuffer;
/**
* @author Stephen Mallette (http://stephen.genoprime.com)
*/
-public class ByteBufferSerializer extends SimpleTypeSerializer<ByteBuffer> {
+public class BinarySerializer extends SimpleTypeSerializer<ByteBuffer> {
- public ByteBufferSerializer() {
- super(DataType.BYTEBUFFER);
+ public BinarySerializer() {
+ super(DataType.BINARY);
}
@Override