Class DefaultMongoClientFactory
- java.lang.Object
-
- com.mongodb.spark.sql.connector.connection.DefaultMongoClientFactory
-
- All Implemented Interfaces:
MongoClientFactory
@Internal public final class DefaultMongoClientFactory extends java.lang.Object implements MongoClientFactory
The default MongoClientFactory implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultMongoClientFactory(MongoConfig config)
Create a new instance of MongoClientFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mongodb.client.MongoClient
create()
boolean
equals(java.lang.Object o)
int
hashCode()
-
-
-
Constructor Detail
-
DefaultMongoClientFactory
public DefaultMongoClientFactory(MongoConfig config)
Create a new instance of MongoClientFactory- Parameters:
config
- the MongoConfig
-
-
Method Detail
-
create
public com.mongodb.client.MongoClient create()
- Specified by:
create
in interfaceMongoClientFactory
- Returns:
- create a new instance of a
MongoClient
.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-