Trait
com.mongodb.spark.config
MongoCompanionConfig
Related Doc: package config
trait MongoCompanionConfig extends Serializable
The Mongo configuration base trait
Defines companion object helper methods for creating MongoConfig instances
Since
1.0
Linear Supertypes
Known Subclasses
Ordering
Alphabetic
By Inheritance
Inherited
MongoCompanionConfig
Serializable
Serializable
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Type Members
abstract type Self
The type of the MongoConfig
Abstract Value Members
abstract def apply(options: Map[String, String], default: Option[Self]): Self
Create a configuration from the values in the Map, using the optional default configuration for any default values.
abstract val configPrefix: String
The configuration prefix string for the current configuration scope
abstract def create(options: Map[String, String], default: Self): Self
Create a configuration easily from the Java API using the values in the Map, using the optional default configuration for any default values.
abstract def create(options: Map[String, String]): Self
Create a configuration easily from the Java API using the values in the Map
abstract def create(sparkConf: SparkConf, options: Map[String, String]): Self
Create a configuration from the sparkConf
abstract def create(sparkConf: SparkConf): Self
Create a configuration easily from the Java API using the sparkConf
abstract def create(sparkSession: SparkSession): Self
Create a configuration easily from the Java API using the JavaSparkContext
abstract def create(javaSparkContext: JavaSparkContext): Self
Create a configuration easily from the Java API using the JavaSparkContext
abstract def create(sqlContext: SQLContext): Self
Create a configuration easily from the Java API using the JavaSparkContext
Concrete Value Members
def apply(options: Map[String, String]): Self
Create a configuration from the values in the Map
def apply(sparkConf: SparkConf, options: Map[String, String]): Self
Create a configuration from the sparkConf
def apply(sparkConf: SparkConf): Self
Create a configuration from the sparkConf
def apply(sparkSession: SparkSession): Self
Create a configuration from the sqlContext
def apply(sparkContext: SparkContext): Self
Create a configuration from the sparkContext
def getOptionsFromConf(sparkConf: SparkConf): Map[String, String]
Gets an options map from the SparkConf
val mongoURIProperty: String
The mongo URI property
def stripPrefix(options: Map[String, String]): Map[String, String]
Strip the prefix from options
Deprecated Value Members
def apply(sqlContext: SQLContext): Self
Create a configuration from the sqlContext