Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Avro, mail # user - Is it possible to parse multiple schema definitions in one string?


Copy link to this message
-
Is it possible to parse multiple schema definitions in one string?
Benyi Wang 2013-06-14, 19:07
Is there a way to pass a string to Schema.Parser include multiple schema
definitions?

     { "type": "record",
        "name": "Date",
        "fields" : [ { "name": "date", "type": "long" }]
      }

     { "type": "record",
        "name": "Transaction",
        "fields": [
         { "name": "id", "type": "int" },
         { "name": "tx_date", "type": "Date" } ]
      }

     { "type": "record",
        "name": "Customer",
        "fields": [
         { "name": "id", "type": "int" },
         { "name": "birthday", "type": "Date" } ]
      }

Transaction and Customer refers Date.
+
Doug Cutting 2013-06-15, 15:24
+
Bertrand Dechoux 2013-06-15, 10:23