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 >> 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

 
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