[Java] Add accessors to get type parameters from vector classes
- 主要言語
- Java
- スター
- 94
- フォーク
- 152
- 平均マージ
- 3日 16時間
- マージ済み PR(30日)
- 11
説明
Vector classes contain private copies of each param in the `ArrowType`, but does not have any public api to access them. So if given a vector you would have to get the `Field` from the and cast to the correct type. For example, with a `TimeStampMicroTZVector` and trying to get the timezone:
```
if field.getType.isInstanceOf[ArrowType.Timestamp] &&
field.getType.asInstanceOf[ArrowType.Timestamp].getTimezone
```
It would be more convenient to have direct accessors for these type params for the vector types that have parameters:
- DecimalVector
- FixedSizeBinaryVector
- ListVector
- TimeStamps with timezones
- FixedSizedListVector
- Unions
**Reporter**: [Bryan Cutler](https://issues.apache.org/jira/browse/ARROW-1361) / @BryanCutler
#### PRs and other links:
- [GitHub Pull Request apache/arrow#972](https://github.com/apache/arrow/pull/972)
**Note**: *This issue was originally created as [ARROW-1361](https://issues.apache.org/jira/browse/ARROW-1361). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*
コントリビューションガイド
調査の方向性
まず、issue で名前が挙げられているベクトルクラスと、リンクされた pull request apache/arrow#972 を確認してください。これらの private な ArrowType パラメーターがどのように表現されているかを確認し、その後、DecimalVector、FixedSizeBinaryVector、ListVector、タイムゾーン対応の timestamp ベクトル、FixedSizeListVector、および union に直接アクセスする accessor が存在することを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- backend-api-design
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100