Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-1361

[Java] Add accessors to get type parameters from vector classes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Java

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bryanc Bryan Cutler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: