| Package | Description |
|---|---|
| org.springframework.data.mongodb.core |
MongoDB core support.
|
| Modifier and Type | Method and Description |
|---|---|
CollectionOptions |
CollectionOptions.capped()
Create new
CollectionOptions with already given settings and capped set to true. |
CollectionOptions |
CollectionOptions.collation(Collation collation)
Create new
CollectionOptions with already given settings and collation set to given value. |
static CollectionOptions |
CollectionOptions.empty()
Create new empty
CollectionOptions. |
static CollectionOptions |
CollectionOptions.just(Collation collation)
Create new
CollectionOptions by just providing the Collation to use. |
CollectionOptions |
CollectionOptions.maxDocuments(long maxDocuments)
Create new
CollectionOptions with already given settings and maxDocuments set to given value. |
CollectionOptions |
CollectionOptions.size(long size)
Create new
CollectionOptions with already given settings and size set to given value. |
| Modifier and Type | Method and Description |
|---|---|
protected com.mongodb.client.model.CreateCollectionOptions |
ReactiveMongoTemplate.convertToCreateCollectionOptions(CollectionOptions collectionOptions) |
protected org.bson.Document |
MongoTemplate.convertToDocument(CollectionOptions collectionOptions) |
<T> reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoCollection<org.bson.Document>> |
ReactiveMongoOperations.createCollection(Class<T> entityClass,
CollectionOptions collectionOptions)
Create a collection with a name based on the provided entity class using the options.
|
<T> com.mongodb.client.MongoCollection<org.bson.Document> |
MongoOperations.createCollection(Class<T> entityClass,
CollectionOptions collectionOptions)
Create a collection with a name based on the provided entity class using the options.
|
<T> com.mongodb.client.MongoCollection<org.bson.Document> |
MongoTemplate.createCollection(Class<T> entityClass,
CollectionOptions collectionOptions) |
<T> reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoCollection<org.bson.Document>> |
ReactiveMongoTemplate.createCollection(Class<T> entityClass,
CollectionOptions collectionOptions) |
reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoCollection<org.bson.Document>> |
ReactiveMongoOperations.createCollection(String collectionName,
CollectionOptions collectionOptions)
Create a collection with the provided name and options.
|
com.mongodb.client.MongoCollection<org.bson.Document> |
MongoOperations.createCollection(String collectionName,
CollectionOptions collectionOptions)
Create a collection with the provided name and options.
|
com.mongodb.client.MongoCollection<org.bson.Document> |
MongoTemplate.createCollection(String collectionName,
CollectionOptions collectionOptions) |
reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoCollection<org.bson.Document>> |
ReactiveMongoTemplate.createCollection(String collectionName,
CollectionOptions collectionOptions) |
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.