类com.mongodb.reactivestreams.client.ClientSession源码实例Demo

下面列出了怎么用com.mongodb.reactivestreams.client.ClientSession的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: quarkus   文件: ReactiveMongoDatabaseImpl.java
@Override
public <T> Multi<ChangeStreamDocument<T>> watch(ClientSession clientSession, List<? extends Bson> pipeline,
        Class<T> clazz, ChangeStreamOptions options) {
    return null;
}
 
源代码2 项目: quarkus   文件: ReactiveMongoDatabaseImpl.java
@Override
public Uni<Void> createCollection(ClientSession clientSession, String collectionName,
        CreateCollectionOptions options) {
    return Wrappers.toUni(database.createCollection(clientSession, collectionName, options));
}
 
源代码3 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public <D> Multi<ChangeStreamDocument<D>> watch(ClientSession clientSession, Class<D> clazz,
        ChangeStreamOptions options) {
    return Wrappers.toMulti(apply(options, collection.watch(clientSession, clazz)));
}
 
源代码4 项目: quarkus   文件: ReactiveMongoDatabaseImpl.java
@Override
public <T> Multi<ChangeStreamDocument<T>> watch(ClientSession clientSession, Class<T> clazz,
        ChangeStreamOptions options) {
    return null;
}
 
源代码5 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public Uni<BulkWriteResult> bulkWrite(ClientSession clientSession,
        List<? extends WriteModel<? extends T>> requests, BulkWriteOptions options) {
    return Wrappers.toUni(collection.bulkWrite(clientSession, requests, options));
}
 
源代码6 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public Multi<T> mapReduce(ClientSession clientSession, String mapFunction, String reduceFunction) {
    return Wrappers.toMulti(collection.mapReduce(clientSession, mapFunction, reduceFunction));
}
 
源代码7 项目: quarkus   文件: ReactiveMongoDatabaseImpl.java
@Override
public <T> Multi<ChangeStreamDocument<T>> watch(ClientSession clientSession, Class<T> clazz) {
    return Wrappers.toMulti(database.watch(clientSession, clazz));
}
 
源代码8 项目: quarkus   文件: ReactiveMongoDatabaseImpl.java
@Override
public Multi<Document> listCollections(ClientSession clientSession) {
    return Wrappers.toMulti(database.listCollections(clientSession));
}
 
源代码9 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public Multi<T> find(ClientSession clientSession, Bson filter, FindOptions options) {
    return Wrappers.toMulti(apply(options, collection.find(clientSession, filter)));
}
 
源代码10 项目: quarkus   文件: ReactiveMongoDatabaseImpl.java
@Override
public Multi<Document> aggregate(ClientSession clientSession, List<? extends Bson> pipeline,
        AggregateOptions options) {
    return Wrappers.toMulti(apply(options, database.aggregate(clientSession, pipeline)));
}
 
源代码11 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public <D> Multi<ChangeStreamDocument<D>> watch(ClientSession clientSession, Class<D> clazz) {
    return Wrappers.toMulti(collection.watch(clientSession, clazz));
}
 
源代码12 项目: quarkus   文件: ReactiveMongoClientImpl.java
@Override
public Multi<ChangeStreamDocument<Document>> watch(ClientSession clientSession,
        List<? extends Bson> pipeline) {
    return Wrappers.toMulti(client.watch(clientSession, pipeline));
}
 
源代码13 项目: quarkus   文件: ReactiveMongoDatabaseImpl.java
@Override
public <T> Multi<T> listCollections(ClientSession clientSession, Class<T> clazz, CollectionListOptions options) {
    return Multi.createFrom().publisher(apply(options, database.listCollections(clientSession, clazz)));
}
 
源代码14 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public Uni<DeleteResult> deleteMany(ClientSession clientSession, Bson filter, DeleteOptions options) {
    return Wrappers.toUni(collection.deleteMany(clientSession, filter, options));
}
 
源代码15 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public <D> Multi<D> distinct(ClientSession clientSession, String fieldName, Class<D> clazz,
        DistinctOptions options) {
    return Wrappers.toMulti(apply(options, collection.distinct(clientSession, fieldName, clazz)));
}
 
源代码16 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public Uni<Long> countDocuments(ClientSession clientSession) {
    return Wrappers.toUni(collection.countDocuments(clientSession));
}
 
源代码17 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public Multi<T> aggregate(ClientSession clientSession, List<? extends Bson> pipeline) {
    return Wrappers.toMulti(collection.aggregate(clientSession, pipeline));
}
 
源代码18 项目: quarkus   文件: ReactiveMongoClientImpl.java
@Override
public Multi<Document> listDatabases(ClientSession clientSession) {
    return Wrappers.toMulti(client.listDatabases(clientSession));
}
 
源代码19 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public Uni<Void> dropIndex(ClientSession clientSession, Bson keys) {
    return Wrappers.toUni(collection.dropIndex(clientSession, keys));
}
 
源代码20 项目: quarkus   文件: ReactiveMongoDatabaseImpl.java
@Override
public <T> Uni<T> runCommand(ClientSession clientSession, Bson command, Class<T> clazz) {
    return Wrappers.toUni(database.runCommand(clientSession, command, clazz));
}
 
源代码21 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public Uni<DeleteResult> deleteOne(ClientSession clientSession, Bson filter) {
    return Wrappers.toUni(collection.deleteOne(clientSession, filter));
}
 
源代码22 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public Uni<DeleteResult> deleteOne(ClientSession clientSession, Bson filter, DeleteOptions options) {
    return Wrappers.toUni(collection.deleteOne(clientSession, filter, options));
}
 
源代码23 项目: quarkus   文件: ReactiveMongoClientImpl.java
@Override
public <T> Multi<ChangeStreamDocument<T>> watch(ClientSession clientSession, List<? extends Bson> pipeline,
        Class<T> clazz, ChangeStreamOptions options) {
    ChangeStreamPublisher<T> publisher = apply(options, client.watch(clientSession, pipeline, clazz));
    return Wrappers.toMulti(publisher);
}
 
源代码24 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public Uni<List<String>> createIndexes(ClientSession clientSession, List<IndexModel> indexes,
        CreateIndexOptions createIndexOptions) {
    return Wrappers.toUniOfList(collection.createIndexes(clientSession, indexes, createIndexOptions));
}
 
源代码25 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public Uni<BulkWriteResult> bulkWrite(ClientSession clientSession,
        List<? extends WriteModel<? extends T>> requests) {
    return Wrappers.toUni(collection.bulkWrite(clientSession, requests));
}
 
源代码26 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public Multi<T> find(ClientSession clientSession) {
    return Wrappers.toMulti(collection.find(clientSession));
}
 
源代码27 项目: quarkus   文件: ReactiveMongoClientImpl.java
@Override
public Uni<ClientSession> startSession() {
    return Wrappers.toUni(client.startSession());
}
 
源代码28 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public Uni<T> findOneAndUpdate(ClientSession clientSession, Bson filter, Bson update,
        FindOneAndUpdateOptions options) {
    return Wrappers.toUni(collection.findOneAndUpdate(clientSession, filter, update, options));
}
 
源代码29 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public Uni<Long> countDocuments(ClientSession clientSession, Bson filter) {
    return Wrappers.toUni(collection.countDocuments(clientSession, filter));
}
 
源代码30 项目: quarkus   文件: ReactiveMongoCollectionImpl.java
@Override
public Uni<UpdateResult> updateOne(ClientSession clientSession, Bson filter, Bson update,
        UpdateOptions options) {
    return Wrappers.toUni(collection.updateOne(clientSession, filter, update, options));
}
 
 类所在包
 同包方法