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

Tool to induce schema using reflection

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • java
    • 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 Martin
        2. AVRO-154.patch.txt
          4 kB
          Philip Martin
        3. AVRO-154.patch.txt
          4 kB
          Philip Martin

        Activity

          People

            philip Philip Martin
            philip Philip Martin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: