avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benyi Wang <bewang.t...@gmail.com>
Subject Is it possible to parse multiple schema definitions in one string?
Date Fri, 14 Jun 2013 19:07:16 GMT
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.

Mime
View raw message