Hive UDF Text to array
问题 I'm trying to create some UDF for Hive which is giving me some more functionality than the already provided split() function. import org.apache.hadoop.hive.ql.exec.UDF; import org.apache.hadoop.io.Text; public class LowerCase extends UDF { public Text evaluate(final Text text) { return new Text(stemWord(text.toString())); } /** * Stems words to normal form. * * @param word * @return Stemmed word. */ private String stemWord(String word) { word = word.toLowerCase(); // Remove special characters