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
Pig >> mail # dev >> Referencing field names in a StoreFunc


Copy link to this message
-
Referencing field names in a StoreFunc
Hi,
I would like to create a StoreFunc link MultiStorage that instead of referencing fields to be added to the output path by index, it references them by name (it would construct a map between names and indexes based on the schema of the data to be output). Is there a mechanism for a StoreFunc to access the schema of the data being stored? I thought overriding checkSchema would do this, but it does not seem to be called in all cases.
Thank you,Rodrick
     
 
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