Thrift
  1. Thrift
  2. THRIFT-589

Add Field Name to Field ID Mapping

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.2
    • Fix Version/s: 0.2
    • Component/s: Java - Compiler
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      The reflection stuff in java thrift is quite useful, but to use it you must know the field id (not the name) of the field you are working with.
      Given a field name, you can obtain the corresponding ID by iterating through the metaDataMap, but it's not ideal.

      1. thrift589-3.patch
        3 kB
        Cyrus Katrak
      2. thrift589-2.patch
        3 kB
        Cyrus Katrak
      3. thrift589.patch
        2 kB
        Cyrus Katrak

        Activity

        Cyrus Katrak created issue -
        Cyrus Katrak made changes -
        Field Original Value New Value
        Attachment thrift589.patch [ 12420323 ]
        Cyrus Katrak made changes -
        Attachment thrift589-2.patch [ 12420654 ]
        Cyrus Katrak made changes -
        Attachment thrift589-3.patch [ 12421154 ]
        Bryan Duxbury made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Cyrus Katrak [ katrakc ]
        Fix Version/s 0.2 [ 12313769 ]
        Resolution Fixed [ 1 ]
        Jake Farrell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Cyrus Katrak
            Reporter:
            Cyrus Katrak
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development