emoji正则表达式
2015-06-03 19:06
281 查看
自定义hive的udf,统计表里面某个字段的emoji的个数。
eclipse编写hive udf需要添加两个包,hive-exec-1.1.0.jar和hadoop-core-0.20.2.jar
public class EmojiNum extends UDF {
//实现evaluate方法
public String evaluate(String string) throws Exception{
// public static void main(String[] argv) throws UnsupportedEncodingException
{
// String string="Thats a nice joke
eclipse编写hive udf需要添加两个包,hive-exec-1.1.0.jar和hadoop-core-0.20.2.jar
public class EmojiNum extends UDF {
//实现evaluate方法
public String evaluate(String string) throws Exception{
// public static void main(String[] argv) throws UnsupportedEncodingException
{
// String string="Thats a nice joke
相关文章推荐
- 子类实例化构造函数调用
- Android 应用性能优化(三) 多核下的多线程计算
- UNP chapter3 习题3.3
- [Q]如何将图纸转换为PDF、JPG、PNG、plt、DWF、DWFx、XPS等格式文件
- hdu1412 {A} + {B}(TreeSet和Iterator的使用)
- [FindBugs分析记录]Potentially dangerous use of non-short-circuit logic
- PHP操作数据库,不推荐使用mysql函数,而推荐使用mysqli和PDO函数
- map用法详解
- CSS-MediaQuery
- CSS-过渡效果和动画效果
- Windows Server 之DHCP服务器的升级2003—2012
- SelectorChapek插件
- 不容易系列(递归)
- CSS-颜色相关
- vim字符编码设置
- matlab在macbook下的详细配置以及可能遇到的所有问题的解决方式(success testing)
- MyEclipse10.6破解补丁
- css3伪类选择器
- 嵌入式重新记录1.将驱动模块编译进内核
- FJ的字符串