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 # user >> Pigify Data Input to UDF for Unit Testing


Copy link to this message
-
Re: Pigify Data Input to UDF for Unit Testing
Bumping, and improving simplicity of the use case.

In Java, with a filled DataBag bag, invoke a SerDe like operation, such
that:

Assume DataBag bag instantiated and filled;
String bag_string = bag.toString();
DataBag new_bag = some_deserializer(bag_string);
new_bag.equals(bag) returns true;

Does there exist an ots method or process 'some_deserializer()' to go from
the .toString String back to an org.apache.pig.data.DataBag?

Many Thanks!
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