Creates a DataFrame
based on the provided schema.
Creates a DataFrame
based on the provided schema.
the schema representing the DataFrame.
a DataFrame.
Creates a DataFrame
based on the schema derived from the bean class.
Creates a DataFrame
based on the schema derived from the bean class.
Note: Prefer toDS[T](beanClass:Class[T])* as computations will be more efficient.
The bean class type to shape the data from MongoDB into
encapsulating the data from MongoDB
a DataFrame
Creates a DataFrame
based on the schema derived from the optional type.
Creates a DataFrame
based on the schema derived from the optional type.
Note: Prefer toDS[T<:Product]()* as computations will be more efficient.
The rdd must contain an _id
for MongoDB versions < 3.2.
The optional type of the data from MongoDB, if not provided the schema will be inferred from the collection
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
Creates a Dataset
from the collection strongly typed to the provided case class.
Creates a Dataset
from the collection strongly typed to the provided case class.
The type of the data from MongoDB
Creates a JavaRDD
for the collection
Creates a JavaRDD
for the collection
the type of the data in the RDD
the class of the data contained in the RDD
the javaRDD
Creates a JavaRDD
for the collection
Creates a JavaRDD
for the collection
a JavaMongoRDD[Document]
Creates a RDD
for the collection
Creates a RDD
for the collection
the datatype for the collection
a MongoRDD[D]
The MongoSpark class
Note: Creation of the class should be via MongoSpark$.builder.
1.0