- 博客(4)
- 收藏
- 关注
原创 hive常用命令
=交互方式= //进入命令行 hive //执行hql语句 hive -e “show databases;” //执行hql脚本 hive -f /home/data/1.hql =数据库相关= show databases; create database if not exists ysk_kx; //指定数据库的存储位置,默认/user/hive/warehouse create database if not exists ywk_os_sjkf location ‘/hive/ywk_os_sj
2021-10-28 16:13:47
1096
原创 java8-通配符类型总结
通配符类型 为什么引入通配符类型,严格的泛型系统使用起来不太方便。(尤其是方法参数校验上) 例如:我编写一个打印Pair<Employee>的函数,是无法传递Pair<Manager>的,因为两者没有任何关系 但是引入通配符类型以后,Pair<S> 和 Pair<T> 就有关系了 例如: Pair<? extends Employee> 是 Pair<Employee> 和 Pair<Manager>的父类 Pai
2021-04-29 16:28:25
336
1
原创 循序搜索
#!/usr/bin/python -- coding: utf-8 -- @File : 顺序搜索.py @Time : 2020/10/18 14:45 @Author : hren @Comment : 循序搜索 无序列表的循序搜索 最好情况 最坏情况 平均情况 存在目标元素时: 1 n n/2 不存在目标元素时: n n n de
2020-10-18 16:22:59
259
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅