Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-589

Add Field Name to Field ID Mapping

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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.

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: