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

Switch to Threaded View
Avro >> mail # user >> Clarification of getSchema()#getIndexNamed(fieldName) in Avro 1.7.5 Java API


Copy link to this message
-
Re: Clarification of getSchema()#getIndexNamed(fieldName) in Avro 1.7.5 Java API
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