Uploaded image for project: 'Avro'
  1. Avro
  2. AVRO-154

Tool to induce schema using reflection

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: java
    • Labels:
      None

      Description

      Patch that follows gives command-line access to ReflectData's getSchema() API, which creates an AVRO schema based on reflection.

      Here's an example:

         $ src/scripts/avroj.sh induce build/test/classes org.apache.avro.BarRecord
          {"type":"record","name":"BarRecord","namespace":"org.apache.avro","fields":[{"name":"beerMsg","type":"string"}]}
      

        Attachments

        1. AVRO-154.patch.txt
          4 kB
          Philip Zeyliger
        2. AVRO-154.patch.txt
          4 kB
          Philip Zeyliger
        3. AVRO-154.patch.txt
          4 kB
          Philip Zeyliger

          Activity

            People

            • Assignee:
              philip Philip Zeyliger
              Reporter:
              philip Philip Zeyliger
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: