chaokunyang commented on code in PR #2346:
URL: https://github.com/apache/fory/pull/2346#discussion_r2151989212
##########
docs/guide/row_format_guide.md:
##########
@@ -116,6 +116,51 @@ for (int i = 0; i < 10; i++) {
return arrowWriter.finishAsRecordBatch();
```
+### Support for Interface and Extension Types
+
+Fury now supports row format mapping for Java `interface` types and subclassed
(`extends`) types, enabling more dynamic and flexible data schemas.
+
+These enhancements were introduced in
[#2243](https://github.com/apache/fury/pull/2243),
[#2250](https://github.com/apache/fury/pull/2250), and
[#2256](https://github.com/apache/fury/pull/2256).
+
+#### Example: Interface Mapping
+
+```java
+public interface Animal {
+ String speak();
+}
+
+public class Dog implements Animal {
+ public String name;
+
+ @Override
+ public String speak() {
+ return "Woof";
+ }
+}
+
+// Registering interface mapping
+fury.getLanguage(Fury.Language.JAVA)
Review Comment:
Tests under java/fory-format/src/test/java/org/apache/fory/format/encoder
such as ImplementInterfaceTest.java/CustomCodecTest.java can be taken as a
reference.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]