title: How to get all the fields name from Avro Schema?
body: <p>I have an avro schema and from which I want to extract all the fields name. Is there any way to do that?</p>
  
  <p>Test schema is like that:</p>
  
  <pre><code>{
      "type": "record",
      "name": "wpmcn.MyPair",
      "doc": "A pair of strings",
      "fields": [
          {"name": "left", "type": "string"},
          {"name": "right", "type": "string"}
      ]
  }
  </code></pre>
  
  <p>Here is the code:</p>
  
  <pre><code>  public static void main(String[] args) throws IOException {
      Schema schema =
          new Schema.Parser().parse(AvroTest.class.getClassLoader().getResourceAsStream("pair.avsc"));
      System.out.println(schema.getFields());
    }
  </code></pre>
  
  <p>Above prints out like that:</p>
  
  <pre><code>[left type:STRING pos:0, right type:STRING pos:1]
  </code></pre>
  
  <p>But I want that it should just return "left" and "right" in an array list and nothing else. Right now it returns type and pos as well which I don't need. Is there any way to get that?</p>