Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # user >> Deprecated use of org.apache.avro.Schema.parse in Generated Records


Copy link to this message
-
Re: Deprecated use of org.apache.avro.Schema.parse in Generated Records
Schema.Parser.parse()

Example:

Schema s1 = new Schema.Parser().parse("{\"type\":\"string\"}");

This allows more advanced parsing if one parse depends on the schemas
defined in a prior one:

Schema.Parser p = new Schema.Parser();
Schema fixed =
  p.parse("{\"type\": \"fixed\", \"size\": 16, \"name\":\"md5\"}");
Schema union =
  p.parse("[\"null\", \"string\", \"md5\"]");
On 1/19/12 10:48 AM, "Uhlig, Hans" <[EMAIL PROTECTED]> wrote:
>As this is now a deprecated method. What is the new method of parsing
>finalized static schema┬╣s for Records?
>
>Hans Uhlig | Senior Systems Engineer
>| R&D PMO & Ops
>Aol. Inc. | Direct 650.937.2119 | Email [EMAIL PROTECTED] | AIM
>hansuhlig9
>GPG Key:  0xE523CC64 |  Fingerprint:  64F7 9B30 C845 CB54 EDCA 190A 1C3E
>6571 E523 CC64
>This message contains privileged and confidential information. Any
>dissemination, distribution, copying or other use of this message or
>any of its content (data, prices...) to any third parties may only occur
>with ADTECH's prior consent.
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB