Avro
  1. Avro
  2. AVRO-154

Tool to induce schema using reflection

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major 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"}]}
      
      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

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development