Creates a DataFrame
based on the schema derived from the bean class
Creates a DataFrame
based on the schema derived from the bean class
The bean class type to shape the data from MongoDB into
encapsulating the data from MongoDB
a DataFrame
Creates a DataFrame
inferring the schema by sampling data from MongoDB.
Creates a DataFrame
inferring the schema by sampling data from MongoDB.
Note: Prefer toDS[T](beanClass:Class[T])* as any computations will be more efficient.
The rdd must contain an _id
for MongoDB versions < 3.2.
a DataFrame
Creates a Dataset
from the RDD strongly typed to the provided java bean.
Creates a Dataset
from the RDD strongly typed to the provided java bean.
The type of the data from MongoDB
encapsulating the data from MongoDB
a Dataset
Returns a copy with the specified aggregation pipeline
Returns a copy with the specified aggregation pipeline
the aggregation pipeline to use
the updated MongoJavaRDD
Java specific version of com.mongodb.spark.rdd.MongoRDD.
1.0