avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lewis John Mcgibbney <lewis.mcgibb...@gmail.com>
Subject Re: Clarification of getSchema()#getIndexNamed(fieldName) in Avro 1.7.5 Java API
Date Mon, 27 Jan 2014 20:56:01 GMT
Hey Robert,

>
> But this is not what you want, I think, so the following is the best way
> as you have discovered:
>
>     int fieldIndex = persistent.getSchema().getField(fieldName).pos();
>
>
> Lewis
>
>>
>
>
> --
>
Yeah thanks for the explanation. It's working like a charm now.
Thanks very much.
Lewis

Mime
View raw message