01 2018 档案

摘要:一,概述 Mongodb中的mongoexport工具可以把一个库中的collection导出成JSON格式或CSV格式的文件。可以导出指定的数据项,当然导出的时候可以排序和指定条件。 二,语法 先来看一个简单示例吧 mongoexport -h 192.168.86.110 --port 2700 阅读全文
posted @ 2018-01-27 17:40 c'estlavie 阅读(574) 评论(0) 推荐(0)
摘要:一.实现 Callable<String>接口,重写call()方法 1 import com.google.common.collect.Lists; 2 import java.util.List; 3 import java.util.concurrent.Callable; 4 import 阅读全文
posted @ 2018-01-21 15:10 c'estlavie 阅读(322) 评论(0) 推荐(0)
摘要:一,基本替换 #替换当前行第一个str1为str2 $ :s/str1/str2/ #替换当前行所有str1为str2 $ :s/str1/str2/g #替换第 n 行开始到最后一行中每一行的第一个str1为str2 $ :n,$s/str1/str2/ #替换第 n 行开始到最后一行中每一行所有 阅读全文
posted @ 2018-01-14 14:47 c'estlavie 阅读(3118) 评论(0) 推荐(0)
摘要:一,代码实现 1 import com.mongodb.DBCollection; 2 import com.mongodb.MongoClient; 3 import java.net.UnknownHostException; 4 5 6 public class MongDBUtile { 7 阅读全文
posted @ 2018-01-06 20:15 c'estlavie 阅读(4058) 评论(0) 推荐(0)