创建表:
hive> CREATE TABLE pokes (foo INT, bar STRING);
Creates a table called pokes with two columns, the first being an integer and the other a string
创建一个新表,结构与其他一样
hive> create table n...
分类:
其他好文 时间:
2014-05-15 07:07:58
阅读次数:
303
为了效率,copy算法可谓无所不用其极,通过分析copy算法能够体会STL的精妙。
首先是三个对外接口:
template // 泛化版本
inline OutputIterator copy(InputIterator first, InputIterator last,
OutputIterator result)
{
...
分类:
其他好文 时间:
2014-05-15 05:50:02
阅读次数:
315
引言
OK.时间很快又过去了一周,第一周有五一假期所以感觉时间绰绰有余,这周中间没有假期只能靠晚上加周末的时间来消化,其实还是有点紧张呢!后来发现每堂课的视频还有对应的课件(Slide)、字幕(subtitles)可以下载,这样下载视频学习和在线学习就只差课程中间的Exercise了
Week 2主要讲函数,函数在Scala里是first-class citizen,可以在任意域内出现,这门课...
分类:
其他好文 时间:
2014-05-15 05:24:10
阅读次数:
351
??
This is because forward declaration in C++: Compiler needs to know function prototype when function call is compiled. So, you need declare the called function first or place the called function be...
分类:
编程语言 时间:
2014-05-15 04:52:19
阅读次数:
211
微软在2014年5月12日的TechEd大会上宣布将会发布下一代ASP.NET框架ASP.NET vNext的预览。此次发布的ASP.NET框架与以前相比发生了根本性的变化,凸显了微软“云优先”(cloud-first)的新战略思想。...
分类:
Web程序 时间:
2014-05-15 04:27:11
阅读次数:
462
未排序数组,O(N)时间,常数空间,这道题让我非常清晰的感觉到算法的魅力。
先想一下如果允许用额外空间的话,我们会怎么做,对,我们会建立一个hash表,然后从头到尾的扫描数组,等等,怎么映射呢?有n个数,要找第一个消失的正正整数,那么这个消失的正整数的取值范围是什么呢?[1, n+1],之所以包含n+1是因为如果这n数正好是连续的前n个自然数。那我们就知道了,开一个长为n的哈希表,如果当前扫到得...
分类:
其他好文 时间:
2014-05-15 03:45:41
阅读次数:
276
题目
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.The first integer...
分类:
其他好文 时间:
2014-05-15 03:41:11
阅读次数:
257
就不介绍了在studio中的图形化操作了,这里简单介绍了一些SQL语言的操作。首先:给一些例子怎样创建一个数据库对象和表(创建create
删除drop):1、创建数据库对象 1 --创建数据库对象 2 create database School; 3 4 --删除数据库 5 drop
data....
分类:
数据库 时间:
2014-05-15 02:06:25
阅读次数:
371
用到的接口和类
1) java.sql.Connection 接口
1)) createStatement() 获得Statement
2)) prepareStatement(String sql) 获得preparedStatement
3)) prepareCall(String sql) 调用存储过程
2)java.sql.DriverManager 类
1))getConnection(String url, String user, String passwor...
分类:
数据库 时间:
2014-05-14 15:14:08
阅读次数:
519