This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package scanner; | |
| import com.mongodb.client.*; | |
| import org.bson.Document; | |
| import org.bson.conversions.Bson; | |
| import org.bson.types.ObjectId; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.carfax.rnd; | |
| import java.math.BigInteger; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.function.Consumer; | |
| import org.bson.Document; | |
| import org.bson.types.Binary; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db.value.aggregate([ | |
| {$project:{ time:1,values:[{c:"$c"},{v:"$v"}]} }, | |
| { | |
| $project: { | |
| time:1, | |
| values2: { | |
| $map: { | |
| input: "$values", | |
| as: "pair", | |
| in: [{$ifNull:["$$pair.c","v-rep"]}, {$ifNull:["$$pair.v","c-rep"]}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.List; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; | |
| import java.util.concurrent.TimeUnit; | |
| import org.bson.Document; | |
| import rx.RxReactiveStreams; | |
| import rx.functions.Action1; | |
| import rx.schedulers.Schedulers; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.scratch; | |
| import org.bson.Document; | |
| import org.bson.codecs.Codec; | |
| import org.bson.codecs.configuration.CodecRegistries; | |
| import org.bson.codecs.configuration.CodecRegistry; | |
| import com.mongodb.MongoClient; | |
| import com.mongodb.MongoClientOptions; | |
| import com.mongodb.client.MongoCollection; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.scratch; | |
| import org.bson.BsonReader; | |
| import org.bson.BsonString; | |
| import org.bson.BsonValue; | |
| import org.bson.BsonWriter; | |
| import org.bson.Document; | |
| import org.bson.codecs.Codec; | |
| import org.bson.codecs.CollectibleCodec; | |
| import org.bson.codecs.DecoderContext; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| MongoDB bean object for java 3.0 driver mapping | |
| */ | |
| package org.scratch; | |
| import org.bson.BsonDocument; | |
| import org.bson.BsonDocumentWrapper; | |
| import org.bson.codecs.configuration.CodecRegistry; | |
| import org.bson.conversions.Bson; |