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

Add Field Name to Field ID Mapping

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2
    • 0.2
    • Java - Compiler
    • None
    • 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-3.patch
          3 kB
          Cyrus Katrak
        2. thrift589-2.patch
          3 kB
          Cyrus Katrak
        3. thrift589.patch
          2 kB
          Cyrus Katrak

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: