Skip to content

Commit 1b722f9

Browse files
wip
1 parent 88b0013 commit 1b722f9

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

java/fury-core/src/main/java/org/apache/fury/type/TypeUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ public static LinkedHashSet<Class<?>> listBeansRecursiveInclusive(Class<?> beanC
697697

698698
public static LinkedHashSet<Class<?>> listBeansRecursiveInclusive(
699699
Class<?> beanClass, CustomTypeRegistry customTypes) {
700-
TypeResolutionContext ctx = new TypeResolutionContext(CustomTypeRegistry.EMPTY);
700+
TypeResolutionContext ctx = new TypeResolutionContext(customTypes);
701701
if (beanClass.isInterface()) {
702702
ctx = ctx.withSynthesizedBeanType(beanClass);
703703
}

java/fury-format/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,15 @@ The initial fury java row data structure implementation is modified from spark u
1414

1515
It is possible to register custom type handling and collection factories for the row format -
1616
see Encoders.registerCustomCodec and Encoders.registerCustomCollectionFactory. For an interface,
17-
Fury can synthesize a simple value implementation, see Encoders.registerLazyBeanInterface.
17+
Fury can synthesize a simple value implementation, such as the UuidType below.
1818

1919
A short example:
2020

2121
```
22-
@Data
23-
public static class UuidType {
24-
public UUID f1;
25-
public UUID[] f2;
26-
public SortedSet<UUID> f3;
22+
public interface UuidType {
23+
UUID f1();
24+
UUID[] f2();
25+
SortedSet<UUID> f3();
2726
}
2827
2928
static class UuidEncoder implements CustomCodec.MemoryBufferCodec<UUID> {

0 commit comments

Comments
 (0)