select查询
mongodb使用find或者findOne来查询:
find批量查询。
findOne是查询一条记录。
find有两个参数: 第一个查询条件, 第二个查询返回的字段。
下面是mongodb与sql查询的对应关系表:...
分类:
数据库 时间:
2014-05-18 18:30:49
阅读次数:
311
T. E. Lawrence was a controversial figure during World War I. He was a British officer who served in the Arabian theater and led a group of Arab nationals in guerilla strikes against the Ottoman Empir...
分类:
其他好文 时间:
2014-05-18 15:17:29
阅读次数:
316
hadoop streaming允许我们使用任何可执行脚本来处理按行组织的数据流,数据取自UNIX的标准输入STDIN,并输出到STDOUT
通过设定mapper为‘RandomSample.py 10’,我们按十分之一的采样率,没有设定特殊的reducer,一般默认使用IdentityReducer(把输入直接转向输出)
通过HDFS的命令getMerge(输出合并)或其他文件操作,可以获得...
分类:
其他好文 时间:
2014-05-18 15:12:21
阅读次数:
380
上篇说道,tokenize方法会把selector分割成一个个selector逻辑单元(如div a是两个逻辑单元)并为之片段赋予对应类型的过滤函数。
for ( type in Expr.filter ) {
if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||...
分类:
Web程序 时间:
2014-05-18 13:42:59
阅读次数:
393
MongoDB是一款NoSql数据库,使用了“面向集合”(Collection-Oriented)原理,意思是数据被分组存储在数据集中,被称为一个集合(Collection)。每个集合(Collection)在数据库中都有一个唯一的标识名,并且可以包含无限数目的对象(BasicDBObject)。
集合(Collection)的概念类似关系型数据库(RDBMS)里的表(table),对象(Bas...
分类:
数据库 时间:
2014-05-18 10:32:55
阅读次数:
410
【题目】
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is.
You may not alter the values in the nodes, only n...
分类:
其他好文 时间:
2014-05-18 10:22:34
阅读次数:
367
以mongoDB的Java驱动为例,演示一些常见的数据操作API...
分类:
数据库 时间:
2014-05-18 07:51:40
阅读次数:
445
本blog以最简洁的方式记录了博主在折腾MongoDB过程中点点滴滴,其中包括下载MongoDB、配置环境变量、如何启动MongoDB服务器、如何连接MongoDB服务器以及如何连接MongoDB服务器等。
1、下载 MongoDB
官方下载地址:http://www.mongodb.org/downloads
本机是Windows 7 32位,故下载的是mongodb-win32-i3...
分类:
数据库 时间:
2014-05-18 07:36:24
阅读次数:
426
前面讲到对于中断来说,eventCombiner将INTC的输入event 4~127分为四个group,即evenCombiner的四个输出event 0~3. 这样event 0~3与event 4~127一起作为Interrupt Sector的输入。之所以这样做是因为CPU仅有12个INT输入(INT4~15),而systemEvent有4~127共124个event,所以12个CPU的I...
分类:
其他好文 时间:
2014-05-18 06:12:14
阅读次数:
304
比较两个字符串1. 题目:比较字符串是否相等2.
要求:写一程序,比较两个字符串String1和String2所含的字符是否相同;若相同则显示’Match’,否则显示’NoMatch’。输入两个字符串之后,将串操作所必须的寄存器等参数设置好,然后使用串操作指令进行从头到尾的比较,两个字符串相等的条件...
分类:
编程语言 时间:
2014-05-17 23:40:34
阅读次数:
409