首先需要下载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
Given an array where elements are sorted in
ascending order, convert it to a height balanced BST.递归,二分法。 1 /** 2 *
Definition for binary tree 3 * st.....
分类:
其他好文 时间:
2014-06-16 00:33:31
阅读次数:
252
mysql 自定义排序顺序实例如:在sql语句中加入ORDER BY FIELD(status,3,4,0,2,1)语句可定义排序顺序SELECT tsdvoucher0_.VOUCHER_ID AS VOUCHER1_0_, tsdvoucher0_.COMMENT_DEVICE_TYPE AS ...
分类:
数据库 时间:
2014-06-15 21:32:00
阅读次数:
260
hibernateintegerstringfloatclassmerge@Entity@Table(name="orders")public class Order {//1-m,多的一方为关系维护端,关系维护端负责外键记录的更新,关系被维护端没有权利更新外键记录private String or...
分类:
系统相关 时间:
2014-06-15 21:31:17
阅读次数:
315
题目
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may assume no duplicates i...
分类:
其他好文 时间:
2014-06-15 17:27:16
阅读次数:
251
题目
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
If the target i...
分类:
其他好文 时间:
2014-06-15 16:53:32
阅读次数:
177
/*
*普通分页
*在数据文件上偏移1000000查出10条
*/
select *
from zoldesk_92game_net_ecms_bj
where classid=303
ORDER BY id ASC
LIMIT 1000000,10
/*
*高效分页
*1、在索引上查出起始索引
*2、从起始索引上查出10条
*/
SELECT * from zoldesk_9...
分类:
数据库 时间:
2014-06-15 15:47:31
阅读次数:
272
多级跳跃表是保存在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