Class MongoCompatibilityAdapter
java.lang.Object
org.springframework.data.mongodb.util.MongoCompatibilityAdapter
Compatibility adapter to bridge functionality across different MongoDB driver versions.
This class is for internal use within the framework and should not be used by applications.
- Since:
- 4.3
- Author:
- Christoph Strobl
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static interface
static interface
static class
static interface
static class
static interface
static interface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclientSettingsAdapter
(com.mongodb.MongoClientSettings clientSettings) Return a compatibility adapter forMongoClientSettings
.clientSettingsBuilderAdapter
(com.mongodb.MongoClientSettings.Builder builder) Return a compatibility adapter forMongoClientSettings.Builder
.indexOptionsAdapter
(com.mongodb.client.model.IndexOptions options) Return a compatibility adapter forIndexOptions
.mapReduceIterableAdapter
(Object iterable) Return a compatibility adapter forMapReduceIterable
.mapReducePublisherAdapter
(Object publisher) Return a compatibility adapter forMapReducePublisher
.serverAddressAdapter
(com.mongodb.ServerAddress serverAddress) Return a compatibility adapter forServerAddress
.
-
Constructor Details
-
MongoCompatibilityAdapter
public MongoCompatibilityAdapter()
-
-
Method Details
-
clientSettingsBuilderAdapter
public static MongoCompatibilityAdapter.ClientSettingsBuilderAdapter clientSettingsBuilderAdapter(com.mongodb.MongoClientSettings.Builder builder) Return a compatibility adapter forMongoClientSettings.Builder
.- Parameters:
builder
-- Returns:
-
clientSettingsAdapter
public static MongoCompatibilityAdapter.ClientSettingsAdapter clientSettingsAdapter(com.mongodb.MongoClientSettings clientSettings) Return a compatibility adapter forMongoClientSettings
.- Parameters:
clientSettings
-- Returns:
-
indexOptionsAdapter
public static MongoCompatibilityAdapter.IndexOptionsAdapter indexOptionsAdapter(com.mongodb.client.model.IndexOptions options) Return a compatibility adapter forIndexOptions
.- Parameters:
options
-- Returns:
-
mapReduceIterableAdapter
public static MongoCompatibilityAdapter.MapReduceIterableAdapter mapReduceIterableAdapter(Object iterable) Return a compatibility adapter forMapReduceIterable
.- Parameters:
iterable
-- Returns:
-
mapReducePublisherAdapter
public static MongoCompatibilityAdapter.MapReducePublisherAdapter mapReducePublisherAdapter(Object publisher) Return a compatibility adapter forMapReducePublisher
.- Parameters:
publisher
-- Returns:
-
serverAddressAdapter
public static MongoCompatibilityAdapter.ServerAddressAdapter serverAddressAdapter(com.mongodb.ServerAddress serverAddress) Return a compatibility adapter forServerAddress
.- Parameters:
serverAddress
-- Returns:
-
mongoDatabaseAdapter
-
reactiveMongoDatabaseAdapter
public static MongoCompatibilityAdapter.ReactiveMongoDatabaseAdapterBuilder reactiveMongoDatabaseAdapter()
-