ClickHouse / ClickHouse/clickhouse-java
Add option to register custom class serializers
- 主要言語
- Java
- スター
- 1.6k
- フォーク
- 636
- 平均マージ
- 2日 23時間
- マージ済み PR(30日)
- 29
説明
### Use case
Want to insert data structured as List> without having to covert every row to a dto object and provide getters.
This kind of structure typically comes from query resultset, csv parser, apache camel exchange etc. The map is of column name to value.
### Describe the solution you'd like
Be able to register a class serializer for Map with POJOSerializers which calls Map.get("column") with the appropriate cast.
Alternatively add built in serializer option that handles List> type
Or possibly have the register method detect get(column-name) methods as valid serialization methods
also allow java record getter methods (which don't start with "get") to act as serialization methods
コントリビューションガイド
調査の方向性
まず POJOSerializers とその register メソッドを読み、要求されている Map.get("column") の処理を、Java record の getter メソッドのサポートと比較してください。この issue では複数の代替設計が提示されているため、完了とするには、まず実装前に 1 つのシリアライズ動作を選択して仕様化する必要があります。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- backend, databases
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100