首先需要下载3个包,下载地址在Github ,这三个核心模块分别是:
Streaming ("jackson-core") defines low-level streaming API, and includes JSON-specific implementations
Annotations ("jackson-annotations") contains standard Jack...
分类:
Web程序 时间:
2014-06-19 10:02:33
阅读次数:
291
int setsockopt(SOCKET s,int level,int optname,const char* optval,int optlen);s(套接字): 指向一个打开的套接口描写叙述字level:(级别): 指定选项代码的类型。SOL_SOCKET: 基本套接口IPPROTO_IP:...
分类:
其他好文 时间:
2014-06-19 06:37:51
阅读次数:
259
在Oracle 10g下,来到scott用户下,分别以层次 1,2,3,4上的节点做实验:
当start with是根节点(level=1),要查其子节点,connect by pump和emp都是被扫描4次(总的层次)。
当start with是根节点(level=2),要查其子节点,connect by pump和emp被扫描3次。
当start wi...
分类:
数据库 时间:
2014-06-16 22:10:00
阅读次数:
232
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree {3,9,20,#,#,15,7},
...
分类:
其他好文 时间:
2014-06-15 15:17:43
阅读次数:
192
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
For example:
Given binary tree {3,9,20,#,#,15,7},
3
/ 9 20
...
分类:
其他好文 时间:
2014-06-15 13:26:54
阅读次数:
200
Description:Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next ...
分类:
其他好文 时间:
2014-06-14 18:41:40
阅读次数:
265
1. Fragment基本用法
为了管理Activity中的fragments,需要调用Activity中的getFragmentManager()方法。因为FragmentManager的API是在Android 3.0,也即API level 11开始引入的,所以对于之前的版本,需要使用support library v4中的FragmentActivity,并且使用getSupportFr...
分类:
其他好文 时间:
2014-06-14 13:38:42
阅读次数:
188
多级跳跃表是保存在tim文件中的。
tip是term index,tim是term dictionary。记忆方法是,p是pointer因此是term index。
这个类会保存多个level的last变量和cur变量,同时使用RAMOutputStream数组缓存不同级别跳跃表的内容,一个term的所有doc添加完后才写入tim文件。几个主要方法:
resetSkip:几个last变量重置...
分类:
其他好文 时间:
2014-06-14 06:36:07
阅读次数:
386
服务器负载均衡体系结构,I:博客分类:读书笔记应用服务器数据结构浏览器网络应用memcached服务器农场的可伸缩性和高可用性Server load
balancing architectures, Part 1: Transport-level load balancingScalability ...
分类:
其他好文 时间:
2014-06-13 18:39:58
阅读次数:
346
2014-06-12 BaoXinjian一、摘要(本文大部分内容来源于Tony Liu)1.
在Update数据之前,我们往往要对待更新的记录进行有效性的校验,校验级别包括Attribute Level Validation: 字段级的校验Entity
Level Validation: 记录级的...
分类:
其他好文 时间:
2014-06-13 16:33:40
阅读次数:
302