一、协处理器介绍 定义:HBase可以让用户的部分逻辑在数据存放端及hbase服务端进行计算的机制(框架)。协处理器允许用户在hbase服务端上运行自己的代码。 分类:系统协处理器、表协处理器 observer,相当于关系型数据库里面的触发器 endpoint,类似于存储过程 二、OBserver ...
分类:
其他好文 时间:
2016-11-14 07:48:08
阅读次数:
188
JDBCTools.java import java.io.InputStream;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLExcept ...
分类:
数据库 时间:
2016-11-13 19:43:01
阅读次数:
292
一、一些API 1、打开文件 SerialFlashFile file; file = SerialFlash.open("filename.bin"); if (file) { // true if the file exists} 2、读数据 char buffer[256]; file.rea... ...
分类:
其他好文 时间:
2016-11-13 19:11:24
阅读次数:
410
A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the ...
分类:
其他好文 时间:
2016-11-13 17:02:55
阅读次数:
259
Problem Description A string is called a square string if it can be obtained by concatenating two copies of the same string. For example, "abab", "aa" ...
分类:
其他好文 时间:
2016-11-13 17:02:47
阅读次数:
189
案例需求:需要在原来的dao实现类的方法中,加入日志的记录功能,对原有的功能进行增强 1. 静态代理 静态代理的组成: 抽象接口:目标类和代理类必须实现同一个抽象接口。 目标类:封装了原始的核心功能 代理类:拥有目标对象的引用,同时完成扩展功能的实现 总结:将核心功能和扩展功能在代码的实现上,进行了 ...
分类:
其他好文 时间:
2016-11-13 13:35:33
阅读次数:
126
1. Git配置 Git 提供了一个叫做git config 的工具,专门用来配置或读取相应的工作环境变量。这些环境变量,可以存放在以下三个不同的地方: /etc/gitconfig文件:系统中对所有用户都普遍适用的配置。若使用git config 时用--system 选项,读写的就是这个文件。 ...
分类:
其他好文 时间:
2016-11-13 11:50:19
阅读次数:
190