[ 
https://issues.apache.org/jira/browse/ARROW-1361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17658395#comment-17658395
 ] 

Rok Mihevc commented on ARROW-1361:
-----------------------------------

This issue has been migrated to [issue 
#17391|https://github.com/apache/arrow/issues/17391] on GitHub. Please see the 
[migration documentation|https://github.com/apache/arrow/issues/14542] for 
further details.

> [Java] Add accessors to get type parameters from vector classes
> ---------------------------------------------------------------
>
>                 Key: ARROW-1361
>                 URL: https://issues.apache.org/jira/browse/ARROW-1361
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Java
>            Reporter: Bryan Cutler
>            Priority: Minor
>              Labels: starter
>
> 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:
> {noformat}
> if field.getType.isInstanceOf[ArrowType.Timestamp] &&
>           field.getType.asInstanceOf[ArrowType.Timestamp].getTimezone
> {noformat}
> 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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to