0
유형별로 그룹 요소를 원하는 다음 각 그룹을 줄이려는 고유 한 오브젝트 유형을 가진 하나의 플럭스가 있습니다.반응기에서 GroupedFlux를 줄입니다.
여기에이 작업을 수행하는 간단한 코드가 있습니다.
Flux<Item> item=Flux.just(new Item("item1"), new Item("item2"));
Flux<Item2> item2=Flux.just(new Item2(4.0f), new Item2(2.0f));
Flux<Object> objects=Mono.empty().concatWith(item).concatWith(item2);
Flux<GroupedFlux<Object>> groups=objects.groupBy(value -> value.getClass());
각 흐름을 유형별로 줄일 수있는 방법은 무엇입니까? enter code here