1.使用pipeline进行批量导入数据
class Redis_Handler(Handler):
def connect(self):
#print self.host,self.port,self.table
self.conn = Connection(self.host,self.port,self.table)
def execute(self, acti...
分类:
编程语言 时间:
2014-07-29 13:06:56
阅读次数:
394
表格 Abstract classInterface实例化不能不能类一种继承关系,一个类只能使用一次继承关系。可以通过继承多个接口实现多重继承一个类可以实现多个interface数据成员可有自己的静态的不能被修改即必须是static final,一般不在此定义方法可以私有的,非abstract方法,...
分类:
其他好文 时间:
2014-07-29 12:05:16
阅读次数:
166
1 CREATE PROCEDURE test_sp1( ) 2 BEGIN 3 DECLARE t_error INTEGER DEFAULT 0; 4 DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET t_er...
分类:
数据库 时间:
2014-07-29 10:26:48
阅读次数:
456
来自:网易博客 就目前我的了解,在两种情况下,PHP会报 Exception thrown without a stack frame in Unknown on line 0这种错误: 1)异常捕捉用了set_exception_handler导向,Exception里面执行另一个Exceptio...
分类:
Web程序 时间:
2014-07-28 23:49:24
阅读次数:
387
abstract class Outer{ int num; public Outer(int x){ num = x; } public abstract void show1(); public abstract void show2();}public class PC{ ...
分类:
编程语言 时间:
2014-07-28 14:52:53
阅读次数:
236
1、从左开始截取字符串left(str, length)说明:left(被截取字段,截取长度)例:select left(content,200) as abstract from my_content_t2、从右开始截取字符串right(str, length)说明:right(被截取字段,截取长...
分类:
数据库 时间:
2014-07-28 14:51:53
阅读次数:
325
1.Handler 功能:主要是接收子线程的数据来更新主线程(UI).接收数据的主要方式是Message对象和Runnalbe对象 描述:Handler有两个作用, (1) : 定时执行Message和Runnalbe 对象 (2): 让一个动作,在不同的线程中执行. ...
分类:
移动开发 时间:
2014-07-28 14:49:53
阅读次数:
244
interface A{ public abstract void show();}interface B{ public abstract int show();}public class Test implements A, B{ public void show(){ ...
分类:
编程语言 时间:
2014-07-28 14:46:53
阅读次数:
242
先建立一个table的基类:
public abstract class DbBaseTable {
private static final String TAG = "DbBaseTable";
/**
* @return the DB table name
*/
abstract String getName();
/**
* Creates the DB table ...
分类:
移动开发 时间:
2014-07-27 23:54:19
阅读次数:
478
在基类的table中加入upgrade操作:
public abstract class DbBaseTable {
private static final String TAG = "DbBaseTable";
/**
* @return the DB table name
*/
abstract String getName();
/**
* Creates th...
分类:
移动开发 时间:
2014-07-27 23:52:19
阅读次数:
387