File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
fury-core/src/main/java/org/apache/fury/type Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -697,7 +697,7 @@ public static LinkedHashSet<Class<?>> listBeansRecursiveInclusive(Class<?> beanC
697
697
698
698
public static LinkedHashSet <Class <?>> listBeansRecursiveInclusive (
699
699
Class <?> beanClass , CustomTypeRegistry customTypes ) {
700
- TypeResolutionContext ctx = new TypeResolutionContext (CustomTypeRegistry . EMPTY );
700
+ TypeResolutionContext ctx = new TypeResolutionContext (customTypes );
701
701
if (beanClass .isInterface ()) {
702
702
ctx = ctx .withSynthesizedBeanType (beanClass );
703
703
}
Original file line number Diff line number Diff line change @@ -14,16 +14,15 @@ The initial fury java row data structure implementation is modified from spark u
14
14
15
15
It is possible to register custom type handling and collection factories for the row format -
16
16
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 .
18
18
19
19
A short example:
20
20
21
21
```
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();
27
26
}
28
27
29
28
static class UuidEncoder implements CustomCodec.MemoryBufferCodec<UUID> {
You can’t perform that action at this time.
0 commit comments