A Mongo configuration with needed properties for MongoDB
The optionally provided schema. If not provided, it will be inferred from the whole field projection of the specified table in Spark SQL statement using a sample ratio (as JSON Data Source does).
An existing Spark SQL context.
Compare if two MongodbRelation are the same.
Compare if two MongodbRelation are the same.
Object to compare
Boolean
Insert data into the specified DataSource.
Insert data into the specified DataSource.
Data to insert.
Boolean indicating whether to overwrite the data.
Indicates if a collection is empty.
Indicates if a collection is empty.
Boolean
An existing Spark SQL context.
An existing Spark SQL context.
A MongoDB baseRelation that can eliminate unneeded columns and filter using selected predicates before producing an RDD containing all matching tuples as Row objects.