Object/Class

com.mongodb.spark.config

ReadConfig

Related Docs: class ReadConfig | package config

Permalink

object ReadConfig extends MongoInputConfig with LoggingTrait

The ReadConfig companion object

Configuration Properties

The prefix when using sparkConf is: spark.mongodb.input. followed by the property name:

Since

1.0

Linear Supertypes
LoggingTrait, MongoInputConfig, MongoCompanionConfig, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReadConfig
  2. LoggingTrait
  3. MongoInputConfig
  4. MongoCompanionConfig
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Self = ReadConfig

    Permalink

    The type of the MongoConfig

    The type of the MongoConfig

    Definition Classes
    ReadConfigMongoCompanionConfig

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val allowDiskUseProperty: String

    Permalink

    The allow disk use property

    The allow disk use property

    Enables writing to temporary files

    Definition Classes
    MongoInputConfig
    Since

    2.3.1

  5. def apply(options: Map[String, String], default: Option[ReadConfig]): ReadConfig

    Permalink

    Create a configuration from the values in the Map, using the optional default configuration for any default values.

    Create a configuration from the values in the Map, using the optional default configuration for any default values.

    Note: Values in the map do not need to be prefixed with the configPrefix.

    options

    a map of properties and their string values

    default

    the optional default configuration, used for determining the default values for the properties

    returns

    the configuration

    Definition Classes
    ReadConfigMongoCompanionConfig
  6. def apply(options: Map[String, String]): Self

    Permalink

    Create a configuration from the values in the Map

    Create a configuration from the values in the Map

    Note: Values in the map do not need to be prefixed with the configPrefix.

    options

    a map of properties and their string values

    returns

    the configuration

    Definition Classes
    MongoCompanionConfig
  7. def apply(sparkConf: SparkConf, options: Map[String, String]): Self

    Permalink

    Create a configuration from the sparkConf

    Create a configuration from the sparkConf

    Uses the prefixed properties that are set in the Spark configuration to create the config.

    sparkConf

    the spark configuration

    options

    overloaded parameters

    returns

    the configuration

    Definition Classes
    MongoCompanionConfig
    See also

    configPrefix

  8. def apply(sparkConf: SparkConf): Self

    Permalink

    Create a configuration from the sparkConf

    Create a configuration from the sparkConf

    Uses the prefixed properties that are set in the Spark configuration to create the config.

    sparkConf

    the spark configuration

    returns

    the configuration

    Definition Classes
    MongoCompanionConfig
    See also

    configPrefix

  9. def apply(sparkSession: SparkSession): Self

    Permalink

    Create a configuration from the sqlContext

    Create a configuration from the sqlContext

    Uses the prefixed properties that are set in the Spark configuration to create the config.

    sparkSession

    the SparkSession

    returns

    the configuration

    Definition Classes
    MongoCompanionConfig
    See also

    configPrefix

  10. def apply(sparkContext: SparkContext): Self

    Permalink

    Create a configuration from the sparkContext

    Create a configuration from the sparkContext

    Uses the prefixed properties that are set in the Spark configuration to create the config.

    sparkContext

    the spark context

    returns

    the configuration

    Definition Classes
    MongoCompanionConfig
    See also

    configPrefix

  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. val batchSizeProperty: String

    Permalink

    The batch size property

    The batch size property

    The size of batches used by the underlying cursor. Smaller batches will result in more round trips to MongoDB.

    Default: The servers default

    Definition Classes
    MongoInputConfig
    Since

    2.4.1

  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. val collationProperty: String

    Permalink

    The collation property

    The collation property

    The json representation of a Collation. Created via Collation.asDocument.toJson.

    Definition Classes
    MongoInputConfig
    Since

    2.3

  15. def collectionName(collectionNameProperty: String, options: Map[String, String], default: Option[String] = None): String

    Permalink
    Attributes
    protected
    Definition Classes
    MongoCompanionConfig
  16. val collectionNameProperty: String

    Permalink

    The collection name property

    The collection name property

    Definition Classes
    MongoInputConfig
  17. val configPrefix: String

    Permalink

    The configuration prefix string for the current configuration scope

    The configuration prefix string for the current configuration scope

    Definition Classes
    MongoInputConfigMongoCompanionConfig
  18. def connectionString(options: Map[String, String]): ConnectionString

    Permalink
    Attributes
    protected
    Definition Classes
    MongoCompanionConfig
  19. def create(sparkConf: SparkConf, options: Map[String, String]): ReadConfig

    Permalink

    Create a configuration from the sparkConf

    Create a configuration from the sparkConf

    Uses the prefixed properties that are set in the Spark configuration to create the config.

    sparkConf

    the spark configuration

    options

    overloaded parameters

    returns

    the configuration

    Definition Classes
    ReadConfigMongoCompanionConfig
    See also

    configPrefix

  20. def create(options: Map[String, String], default: ReadConfig): ReadConfig

    Permalink

    Create a configuration easily from the Java API using the values in the Map, using the optional default configuration for any default values.

    Create a configuration easily from the Java API using the values in the Map, using the optional default configuration for any default values.

    Note: Values in the map do not need to be prefixed with the configPrefix.

    options

    a map of properties and their string values

    default

    the optional default configuration, used for determining the default values for the properties

    returns

    the configuration

    Definition Classes
    ReadConfigMongoCompanionConfig
  21. def create(options: Map[String, String]): ReadConfig

    Permalink

    Create a configuration easily from the Java API using the values in the Map

    Create a configuration easily from the Java API using the values in the Map

    Note: Values in the map do not need to be prefixed with the configPrefix.

    options

    a map of properties and their string values

    returns

    the configuration

    Definition Classes
    ReadConfigMongoCompanionConfig
  22. def create(sparkConf: SparkConf): ReadConfig

    Permalink

    Create a configuration easily from the Java API using the sparkConf

    Create a configuration easily from the Java API using the sparkConf

    Uses the prefixed properties that are set in the Spark configuration to create the config.

    sparkConf

    the spark configuration

    returns

    the configuration

    Definition Classes
    ReadConfigMongoCompanionConfig
    See also

    configPrefix

  23. def create(sparkSession: SparkSession): ReadConfig

    Permalink

    Create a configuration easily from the Java API using the JavaSparkContext

    Create a configuration easily from the Java API using the JavaSparkContext

    Uses the prefixed properties that are set in the Spark configuration to create the config.

    sparkSession

    the SparkSession

    returns

    the configuration

    Definition Classes
    ReadConfigMongoCompanionConfig
    See also

    configPrefix

  24. def create(javaSparkContext: JavaSparkContext): ReadConfig

    Permalink

    Create a configuration easily from the Java API using the JavaSparkContext

    Create a configuration easily from the Java API using the JavaSparkContext

    Uses the prefixed properties that are set in the Spark configuration to create the config.

    javaSparkContext

    the java spark context

    returns

    the configuration

    Definition Classes
    ReadConfigMongoCompanionConfig
    See also

    configPrefix

  25. def create(databaseName: String, collectionName: String, connectionString: String, sampleSize: Int, partitioner: String, partitionerOptions: Map[String, String], localThreshold: Int, readPreference: ReadPreference, readConcern: ReadConcern, collation: Collation, hint: BsonDocument, registerSQLHelperFunctions: Boolean, inferSchemaMapTypesEnabled: Boolean, inferSchemaMapTypesMinimumKeys: Int, pipelineIncludeNullFilters: Boolean, pipelineIncludeFiltersAndProjections: Boolean): ReadConfig

    Permalink

    Read Configuration used when reading data from MongoDB

    Read Configuration used when reading data from MongoDB

    databaseName

    the database name

    collectionName

    the collection name

    connectionString

    the optional connection string used in the creation of this configuration

    sampleSize

    a positive integer sample size to draw from the collection when inferring the schema

    partitioner

    the class name of the partitioner to use to create partitions

    partitionerOptions

    the configuration options for the partitioner

    localThreshold

    the local threshold in milliseconds used when choosing among multiple MongoDB servers to send a request. Only servers whose ping time is less than or equal to the server with the fastest ping time plus the local threshold will be chosen.

    readPreference

    the readPreference configuration

    readConcern

    the readConcern configuration

    collation

    the collation

    hint

    the aggregation hint

    registerSQLHelperFunctions

    true to register sql helper functions

    inferSchemaMapTypesEnabled

    true to detect MapTypes when inferring Schema.

    inferSchemaMapTypesMinimumKeys

    the minimum number of keys before a document can be inferred as a MapType.

    pipelineIncludeNullFilters

    true to include and push down null and exists filters into the pipeline when using sql.

    pipelineIncludeFiltersAndProjections

    true to push down filters and projections into the pipeline when using sql.

    returns

    the ReadConfig

    Since

    2.3

  26. def create(databaseName: String, collectionName: String, connectionString: String, sampleSize: Int, partitioner: String, partitionerOptions: Map[String, String], localThreshold: Int, readPreference: ReadPreference, readConcern: ReadConcern, collation: Collation, hint: BsonDocument, registerSQLHelperFunctions: Boolean, inferSchemaMapTypesEnabled: Boolean, inferSchemaMapTypesMinimumKeys: Int): ReadConfig

    Permalink

    Read Configuration used when reading data from MongoDB

    Read Configuration used when reading data from MongoDB

    databaseName

    the database name

    collectionName

    the collection name

    connectionString

    the optional connection string used in the creation of this configuration

    sampleSize

    a positive integer sample size to draw from the collection when inferring the schema

    partitioner

    the class name of the partitioner to use to create partitions

    partitionerOptions

    the configuration options for the partitioner

    localThreshold

    the local threshold in milliseconds used when choosing among multiple MongoDB servers to send a request. Only servers whose ping time is less than or equal to the server with the fastest ping time plus the local threshold will be chosen.

    readPreference

    the readPreference configuration

    readConcern

    the readConcern configuration

    collation

    the collation

    hint

    the aggregation hint

    registerSQLHelperFunctions

    true to register sql helper functions

    inferSchemaMapTypesEnabled

    true to detect MapTypes when inferring Schema.

    inferSchemaMapTypesMinimumKeys

    the minimum number of keys before a document can be inferred as a MapType.

    returns

    the ReadConfig

    Since

    2.3

  27. def create(databaseName: String, collectionName: String, connectionString: String, sampleSize: Int, partitioner: String, partitionerOptions: Map[String, String], localThreshold: Int, readPreference: ReadPreference, readConcern: ReadConcern, collation: Collation, hint: BsonDocument, registerSQLHelperFunctions: Boolean): ReadConfig

    Permalink

    Read Configuration used when reading data from MongoDB

    Read Configuration used when reading data from MongoDB

    databaseName

    the database name

    collectionName

    the collection name

    connectionString

    the optional connection string used in the creation of this configuration

    sampleSize

    a positive integer sample size to draw from the collection when inferring the schema

    partitioner

    the class name of the partitioner to use to create partitions

    partitionerOptions

    the configuration options for the partitioner

    localThreshold

    the local threshold in milliseconds used when choosing among multiple MongoDB servers to send a request. Only servers whose ping time is less than or equal to the server with the fastest ping time plus the local threshold will be chosen.

    readPreference

    the readPreference configuration

    readConcern

    the readConcern configuration

    collation

    the collation

    hint

    the aggregation hint

    registerSQLHelperFunctions

    true to register sql helper functions

    returns

    the ReadConfig

    Since

    2.3

  28. def create(databaseName: String, collectionName: String, connectionString: String, sampleSize: Int, partitioner: String, partitionerOptions: Map[String, String], localThreshold: Int, readPreference: ReadPreference, readConcern: ReadConcern, collation: Collation, hint: BsonDocument): ReadConfig

    Permalink

    Read Configuration used when reading data from MongoDB

    Read Configuration used when reading data from MongoDB

    databaseName

    the database name

    collectionName

    the collection name

    connectionString

    the optional connection string used in the creation of this configuration

    sampleSize

    a positive integer sample size to draw from the collection when inferring the schema

    partitioner

    the class name of the partitioner to use to create partitions

    partitionerOptions

    the configuration options for the partitioner

    localThreshold

    the local threshold in milliseconds used when choosing among multiple MongoDB servers to send a request. Only servers whose ping time is less than or equal to the server with the fastest ping time plus the local threshold will be chosen.

    readPreference

    the readPreference configuration

    readConcern

    the readConcern configuration

    collation

    the collation

    hint

    the aggregation hint

    Since

    2.3

  29. def create(databaseName: String, collectionName: String, connectionString: String, sampleSize: Int, partitioner: String, partitionerOptions: Map[String, String], localThreshold: Int, readPreference: ReadPreference, readConcern: ReadConcern, registerSQLHelperFunctions: Boolean): ReadConfig

    Permalink

    Read Configuration used when reading data from MongoDB

    Read Configuration used when reading data from MongoDB

    databaseName

    the database name

    collectionName

    the collection name

    connectionString

    the optional connection string used in the creation of this configuration

    sampleSize

    a positive integer sample size to draw from the collection when inferring the schema

    partitioner

    the class name of the partitioner to use to create partitions

    partitionerOptions

    the configuration options for the partitioner

    localThreshold

    the local threshold in milliseconds used when choosing among multiple MongoDB servers to send a request. Only servers whose ping time is less than or equal to the server with the fastest ping time plus the local threshold will be chosen.

    readPreference

    the readPreference configuration

    readConcern

    the readConcern configuration

    registerSQLHelperFunctions

    true to register sql helper functions

    Since

    1.0

  30. def create(databaseName: String, collectionName: String, connectionString: String, sampleSize: Int, partitioner: String, partitionerOptions: Map[String, String], localThreshold: Int, readPreference: ReadPreference, readConcern: ReadConcern): ReadConfig

    Permalink

    Read Configuration used when reading data from MongoDB

    Read Configuration used when reading data from MongoDB

    databaseName

    the database name

    collectionName

    the collection name

    connectionString

    the optional connection string used in the creation of this configuration

    sampleSize

    a positive integer sample size to draw from the collection when inferring the schema

    partitioner

    the class name of the partitioner to use to create partitions

    partitionerOptions

    the configuration options for the partitioner

    localThreshold

    the local threshold in milliseconds used when choosing among multiple MongoDB servers to send a request. Only servers whose ping time is less than or equal to the server with the fastest ping time plus the local threshold will be chosen.

    readPreference

    the readPreference configuration

    readConcern

    the readConcern configuration

    Since

    1.0

  31. def databaseName(databaseNameProperty: String, options: Map[String, String], default: Option[String] = None): String

    Permalink
    Attributes
    protected
    Definition Classes
    MongoCompanionConfig
  32. val databaseNameProperty: String

    Permalink

    The database name property

    The database name property

    Definition Classes
    MongoInputConfig
  33. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  34. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  35. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. def getBoolean(newValue: Option[String], existingValue: Option[Boolean] = None, defaultValue: Boolean): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    MongoCompanionConfig
  37. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  38. def getInt(newValue: Option[String], existingValue: Option[Int] = None, defaultValue: Int): Int

    Permalink
    Attributes
    protected
    Definition Classes
    MongoCompanionConfig
  39. def getOptionsFromConf(sparkConf: SparkConf): Map[String, String]

    Permalink

    Gets an options map from the SparkConf

    Gets an options map from the SparkConf

    sparkConf

    the SparkConf

    returns

    the options

    Definition Classes
    MongoCompanionConfig
  40. def getString(newValue: Option[String], existingValue: Option[String] = None, defaultValue: String): String

    Permalink
    Attributes
    protected
    Definition Classes
    MongoCompanionConfig
  41. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  42. val hintProperty: String

    Permalink

    The hint property

    The hint property

    The json representation of a hint document

    Definition Classes
    MongoInputConfig
    Since

    2.3

  43. val inferSchemaMapTypeEnabledProperty: String

    Permalink

    The infer schema MapType enabled property

    The infer schema MapType enabled property

    A boolean flag to enable or disable MapType infer. If this flag is enabled, large compatible struct types will be inferred to a MapType instead.

    Default: true

    Definition Classes
    MongoInputConfig
    Since

    2.3

  44. val inferSchemaMapTypeMinimumKeysProperty: String

    Permalink

    The infer schema MapType minimum keys property

    The infer schema MapType minimum keys property

    The minimum keys property controls how large a struct must be before a MapType should be inferred.

    Default: 250

    Definition Classes
    MongoInputConfig
    Since

    2.3

  45. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  46. val localThresholdProperty: String

    Permalink

    The localThreshold property

    The localThreshold property

    The local threshold in milliseconds is used when choosing among multiple MongoDB servers to send a request. Only servers whose ping time is less than or equal to the server with the fastest ping time *plus* the local threshold will be chosen.

    For example when choosing which MongoS to send a request through a localThreshold of 0 would pick the MongoS with the fastest ping time.

    Default: 15 ms

    Definition Classes
    MongoInputConfig
  47. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  48. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  49. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  50. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  51. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  52. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  53. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  54. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  55. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  56. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  57. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  58. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  59. val mongoURIProperty: String

    Permalink

    The mongo URI property

    The mongo URI property

    Represents a connection string.

    Any values set in the connection string will override any default values for the configuration.

    Definition Classes
    MongoCompanionConfig
  60. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  61. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  62. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  63. val partitionerOptionsProperty: String

    Permalink

    The partitioner options property

    The partitioner options property

    Represents a map of options for customising the configuration of a partitioner. Default: Map.empty[String, String]

    Definition Classes
    MongoInputConfig
  64. val partitionerProperty: String

    Permalink

    The partition property

    The partition property

    Represents the name of the partitioner to use when partitioning the data in the collection. Default: MongoDefaultPartitioner

    Definition Classes
    MongoInputConfig
  65. val pipelineIncludeFiltersAndProjectionsProperty: String

    Permalink

    The sql include pipeline filters and projections property

    The sql include pipeline filters and projections property

    A boolean flag to enable or disable pushing down filters and projections into MongoDB when using spark sql. A false value will be expensive as all data will be sent to spark and filtered in Spark.

    Default: true

    Definition Classes
    MongoInputConfig
    Since

    2.3

  66. val pipelineIncludeNullFiltersProperty: String

    Permalink

    The sql include null filters in the pipeline property

    The sql include null filters in the pipeline property

    A boolean flag to enable or disable pushing null value checks into MongoDB when using spark sql. These ensure that the value exists and is not null for each not nullable field.

    Default: true

    Definition Classes
    MongoInputConfig
    Since

    2.3

  67. val pipelineProperty: String

    Permalink

    The pipeline property

    The pipeline property

    Enables custom aggregation pipelines to applied to the collection before sending to Spark. When configuring this should either be an extended json representation of a list of documents:

    """[{"$match": {"closed": false}}, {"$project": {"status": 1, "name": 1, "description": 1}}]"""

    Or the extended json syntax of a single document:

    """{"$match": {"closed": false}}"""

    Note: Custom aggregation pipelines must work with the partitioner strategy. Some stages such as $group may not work as expected.

    Definition Classes
    MongoInputConfig
    Since

    2.3.1

  68. val readConcernLevelProperty: String

    Permalink

    The ReadConcern level property

    The ReadConcern level property

    Default: DEFAULT

    Definition Classes
    MongoInputConfig
    See also

    ReadConcernConfig

  69. val readPreferenceNameProperty: String

    Permalink

    The ReadPreference name property

    The ReadPreference name property

    Default: primary

    Definition Classes
    MongoInputConfig
    See also

    ReadPreferenceConfig

  70. val readPreferenceTagSetsProperty: String

    Permalink

    The ReadPreference tags property

    The ReadPreference tags property

    Definition Classes
    MongoInputConfig
    See also

    ReadPreferenceConfig

  71. val registerSQLHelperFunctions: String

    Permalink
    Definition Classes
    MongoInputConfig
  72. val registerSQLHelperFunctionsProperty: String

    Permalink

    Register SQL Helper functions

    Register SQL Helper functions

    The SQL helper functions allow easy querying of Bson types inside SQL queries

    Definition Classes
    MongoInputConfig
    Since

    1.1

  73. val samplePoolSizeProperty: String

    Permalink

    The sample pool size property

    The sample pool size property

    The size of the pool to take a sample from, used when there is no $sample support or if there is a pushed down aggregation. Can be used to significantly reduce the costs of inferring the schema. A negative value disables limiting when using $sample and will sample from the whole collection.

    Default: 10000

    Definition Classes
    MongoInputConfig
    Since

    2.3.1

  74. val sampleSizeProperty: String

    Permalink

    The sample size property

    The sample size property

    Used when sampling data from MongoDB to determine the Schema. Should be equal or less than the sample pool size. Default: 1000

    Definition Classes
    MongoInputConfig
  75. def stripPrefix(options: Map[String, String]): Map[String, String]

    Permalink

    Strip the prefix from options

    Strip the prefix from options

    options

    options that may contain the prefix

    returns

    prefixLess options

    Definition Classes
    MongoCompanionConfig
  76. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  77. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  78. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  79. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def apply(sqlContext: SQLContext): Self

    Permalink

    Create a configuration from the sqlContext

    Create a configuration from the sqlContext

    Uses the prefixed properties that are set in the Spark configuration to create the config.

    sqlContext

    the SQL context

    returns

    the configuration

    Definition Classes
    MongoCompanionConfig
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) As of Spark 2.0 SQLContext was replaced by SparkSession. Use the SparkSession method instead

    See also

    configPrefix

  2. def create(sqlContext: SQLContext): ReadConfig

    Permalink

    Create a configuration easily from the Java API using the JavaSparkContext

    Create a configuration easily from the Java API using the JavaSparkContext

    Uses the prefixed properties that are set in the Spark configuration to create the config.

    sqlContext

    the SQL context

    returns

    the configuration

    Definition Classes
    ReadConfigMongoCompanionConfig
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) As of Spark 2.0 SQLContext was replaced by SparkSession. Use the SparkSession method instead

    See also

    configPrefix

Inherited from LoggingTrait

Inherited from MongoInputConfig

Inherited from MongoCompanionConfig

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped