The Difference Using Java and Hadoop Types in Hive UDF -


when writing simple hive udf, possible use both standard java , hadoop types in evaluate() method. example, following methods should return same results.

using string input , output types:

public string evaluate(string input) {   if(input == null) return null;   return input.touppercase(); } 

using text input , output types:

public text evaluate(text input) {   if(input == null) return null;   return new text(input.tostring().touppercase()); } 

my question benefits of using 1 vs other? if use standard java input , output types (like string) hadoop converting these objects hadoop types me?


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -