Re: How to get typed value from GenericRecord?

2016-11-24 Thread Check Peck
Can anyone help me with this? On Thu, Nov 24, 2016 at 10:29 AM, Check Peck wrote: > I am working with Avro and I have a GenericRecord. I want to extract > clientId and deviceName from it. In the Avro Schema, clientId is integer > and deviceName is String. My question is

AVRO-1961 - [JAVA] Generate getters that return an Optional

2016-11-24 Thread Joseph P.
Hi A quick mail to let you know a discussion as started on how to integrate Optional in Avro's generated Pojo, there https://issues.apache.org/jira/browse/AVRO-1961 There are open questions which may be of interest to you. Best joseph

How to get typed value from GenericRecord?

2016-11-24 Thread Check Peck
I am working with Avro and I have a GenericRecord. I want to extract clientId and deviceName from it. In the Avro Schema, clientId is integer and deviceName is String. My question is - what is the recommended way to retrieve a typed value, as opposed to an Object or extracting everything as a