sd4324530 commented on issue #2325:
URL: https://github.com/apache/fluss/issues/2325#issuecomment-3733185114

   @swuferhong I have a question. How should `RebalancePlanForBucketJsonSerde` 
be designed? Because there are multiple 'RebalancePlanForBucket' for 
'rebalance_plan'.
   These are my two ideas:
   Option A:
   ```java
   public class RebalancePlanForBucketJsonSerde implements 
JsonSerializer<RebalancePlanForBucket>, JsonDeserializer<RebalancePlanForBucket>
   ```
   But if designed this way, how do you combine multiple 
'RebalancePlanForBucket' into a json array?
   
   Or is it design like `Option B`?
   Option B:
   ```java
   public class RebalancePlanForBucketJsonSerde implements 
JsonSerializer<List<RebalancePlanForBucket>>, 
JsonDeserializer<List<RebalancePlanForBucket>>
   ```
   
   I haven't found a design like this in the project, so I'm unsure how to 
design it.


-- 
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]

Reply via email to