This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-fury-site.git
The following commit(s) were added to refs/heads/main by this push:
new d0b36ed 🔄 synced local 'docs/guide/' with remote 'docs/guide/'
d0b36ed is described below
commit d0b36edd4211887502a88683f561cf3632b57e68
Author: chaokunyang <[email protected]>
AuthorDate: Fri Apr 12 18:51:47 2024 +0000
🔄 synced local 'docs/guide/' with remote 'docs/guide/'
---
docs/guide/java_object_graph_guide.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/guide/java_object_graph_guide.md
b/docs/guide/java_object_graph_guide.md
index a4b3216..997b7a1 100644
--- a/docs/guide/java_object_graph_guide.md
+++ b/docs/guide/java_object_graph_guide.md
@@ -203,13 +203,13 @@ class FooSerializer extends Serializer<Foo> {
@Override
public void write(MemoryBuffer buffer, Foo value) {
- buffer.writeLong(value.f1);
+ buffer.writeInt64(value.f1);
}
@Override
public Foo read(MemoryBuffer buffer) {
Foo foo = new Foo();
- foo.f1 = buffer.readLong();
+ foo.f1 = buffer.readInt64();
return foo;
}
}
@@ -381,13 +381,13 @@ But if you do want to upgrade fury for better performance
and smaller size, you
using code like following to keep binary compatibility:
```java
MemoryBuffer buffer = xxx;
-buffer.writeVarInt(2);
+buffer.writeVarInt32(2);
fury.serialize(buffer, obj);
```
Then for deserialization, you need:
```java
MemoryBuffer buffer = xxx;
-int furyVersion = buffer.readVarInt()
+int furyVersion = buffer.readVarInt32()
Fury fury = getFury(furyVersion);
fury.deserialize(buffer);
```
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]