11 2016 档案
MongoDB - The mongo Shell, Configure the mongo Shell
摘要:Customize the Prompt You may modify the content of the prompt by setting the variable prompt in the mongo shell. The promptvariable can hold strings a 阅读全文
posted @ 2016-11-30 23:46 huey2672 阅读(315) 评论(0) 推荐(0)
MongoDB - Introduction of the mongo Shell
摘要:Introduction The mongo shell is an interactive JavaScript interface to MongoDB. You can use the mongo shell to query and update data as well as perfor 阅读全文
posted @ 2016-11-30 23:08 huey2672 阅读(367) 评论(0) 推荐(0)
MongoDB - Introduction to MongoDB, MongoDB Extended JSON
摘要:JSON can only represent a subset of the types supported by BSON. To preserve type information, MongoDB adds the following extensions to the JSON forma 阅读全文
posted @ 2016-11-30 20:08 huey2672 阅读(881) 评论(0) 推荐(0)
MongoDB - Introduction to MongoDB, BSON Types
摘要:BSON is a binary serialization format used to store documents and make remote procedure calls in MongoDB. The BSON specification is located at bsonspe 阅读全文
posted @ 2016-11-30 17:14 huey2672 阅读(326) 评论(0) 推荐(0)
MongoDB - Introduction to MongoDB, Documents
摘要:MongoDB stores data records as BSON documents. BSON is a binary representation of JSON documents, though it contains more data types than JSON. For th 阅读全文
posted @ 2016-11-30 15:28 huey2672 阅读(239) 评论(0) 推荐(0)
MongoDB - Introduction to MongoDB, Capped Collections
摘要:Overview Capped collections are fixed-size collections that support high-throughput operations that insert and retrieve documents based on insertion o 阅读全文
posted @ 2016-11-30 13:34 huey2672 阅读(324) 评论(0) 推荐(0)
MongoDB - Installing MongoDB on Linux
摘要:1. 下载最新稳定版本的安装包。 2. 解压安装包。 3. 设置环境变量。 4. 创建数据目录。 5. 启动服务。 6. 运行 MongoDB Shell 阅读全文
posted @ 2016-11-30 11:13 huey2672 阅读(269) 评论(0) 推荐(0)
MongoDB - Introduction to MongoDB
摘要:MongoDB is an open-source document database that provides high performance, high availability, and automatic scaling. Document Database A record in Mo 阅读全文
posted @ 2016-11-30 10:03 huey2672 阅读(152) 评论(0) 推荐(0)
Java MongoDB Driver 3.x - Quick Start
摘要:Maven Dependency: Make a Connection The following example shows five ways to connect to the database mydb on the local machine. If the database does n 阅读全文
posted @ 2016-11-28 21:10 huey2672 阅读(521) 评论(0) 推荐(0)
Table of Contents - MongoDB
摘要:Getting Started Installation Installing MongoDB on Windows Installing MongoDB on Linux Introduction Introduction to MongoDB Databases and Collections 阅读全文
posted @ 2016-11-28 17:35 huey2672 阅读(163) 评论(0) 推荐(0)
MongoDB - Installing MongoDB on Windows
摘要:1. 在 http://www.mongodb.org/downloads 选择下载所需的版本。 2. 执行 msi 安装包,可通过 Custom 选项,选择安装目录。 3. 创建数据目录。MongoDB 需要一个存储数据的目录,如果不指定, Windows 环境默认使用 c:\data\db。 4 阅读全文
posted @ 2016-11-26 15:34 huey2672 阅读(262) 评论(0) 推荐(0)
Java Concurrency - Concurrent Collections
摘要:Data structures are a basic element in programming. Almost every program uses one or more types of data structures to store and manage their data. Jav 阅读全文
posted @ 2016-11-23 20:48 huey2672 阅读(359) 评论(0) 推荐(0)
Java Concurrency - java.util.concurrent API Class Diagram
摘要:摘自: www.uml-diagrams.org Here we provide several UML class diagrams for the Java™ 7 java.util.concurrent package. Several java.util.concurrent.* packa 阅读全文
posted @ 2016-11-20 11:56 huey2672 阅读(445) 评论(0) 推荐(0)
Java Concurrency - Fork/Join Framework
摘要:Normally, when you implement a simple, concurrent Java application, you implement some Runnable objects and then the corresponding Thread objects. You 阅读全文
posted @ 2016-11-16 13:22 huey2672 阅读(373) 评论(0) 推荐(0)
Java Concurrency - 取消线程执行器中的线程
摘要:When you work with an executor, you don't have to manage threads. You only implement the Runnable or Callable tasks and send them to the executor. It' 阅读全文
posted @ 2016-11-07 19:23 huey2672 阅读(167) 评论(0) 推荐(0)
Java Concurrency - ScheduledThreadPoolExecutor
摘要:The Executor framework provides the ThreadPoolExecutor class to execute Callable and Runnable tasks with a pool of threads, which avoid you all the th 阅读全文
posted @ 2016-11-07 17:38 huey2672 阅读(237) 评论(0) 推荐(0)
Java Concurrency - invokeAny & invokeAll
摘要:Running multiple tasks and processing the first result A common problem in concurrent programming is when you have various concurrent tasks that solve 阅读全文
posted @ 2016-11-07 14:55 huey2672 阅读(527) 评论(0) 推荐(0)
Java Concurrency - Callable & Future
摘要:One of the advantages of the Executor framework is that you can run concurrent tasks that return a result. The Java Concurrency API achieves this with 阅读全文
posted @ 2016-11-05 15:57 huey2672 阅读(187) 评论(0) 推荐(0)
Java Concurrency - 线程执行器
摘要:Usually, when you develop a simple, concurrent-programming application in Java, you create some Runnable objects and then create the corresponding Thr 阅读全文
posted @ 2016-11-04 21:02 huey2672 阅读(351) 评论(0) 推荐(0)
Git - Eclipse 提交工程至 GitHub
摘要:1. 在 GitHub 新建一个工程 hello-world,repository 地址是 https://github.com/username/hello-world.git 2. 在 Eclipse 新建一个工程 hello-world 3. 选择工程右键 -> Team -> Share P 阅读全文
posted @ 2016-11-04 16:12 huey2672 阅读(186) 评论(0) 推荐(0)
Java Concurrency - Semaphore 信号量
摘要:Semaphore 是一个控制访问多个共享资源的计数器。 当一个线程想要访问某个共享资源,首先,它必须获得 semaphore。如果 semaphore 的内部计数器的值大于 0,那么 semaphore 减少计数器的值并允许访问共享的资源。计数器的值大于 0 表示,有可以自由使用的资源,所以线程可 阅读全文
posted @ 2016-11-02 14:33 huey2672 阅读(232) 评论(0) 推荐(0)