摘要: 有一张很大的表:TRLOG该表大概有2T左右TRLOG:CREATETABLETRLOG(PLATFORMstring,USER_IDint,CLICK_TIMEstring,CLICK_URLstring)rowformatdelimitedfieldsterminatedby'\t';数据:PL... 阅读全文
posted @ 2015-11-04 17:45 段星星 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 1. 假设我们在hive中有两张表,其中一张表是存用户基本信息,另一张表是存用户的地址信息等,表数据假设如下:user_basic_info:idname1a2b3c4duser_address;nameaddressaadd1aadd2badd3cadd4dadd5我们可以看到同一个用户不止一个地... 阅读全文
posted @ 2015-11-04 17:42 段星星 阅读(3522) 评论(0) 推荐(0) 编辑
摘要: 1.冒泡排序算法,增加flag标记/** * Created by xingxing.duan on 2015/11/4. */public class BubbleSort { private static void bubbleSort(int[] matrix) { boo... 阅读全文
posted @ 2015-11-04 11:09 段星星 阅读(155) 评论(0) 推荐(0) 编辑