com.microsoft.azure.cosmosdb.spark

CosmosDBSpark

case class CosmosDBSpark(sparkSession: SparkSession, readConfig: Config) extends Product with Serializable

The CosmosDBSpark class

Note: Creation of the class should be via CosmosDBSpark$.builder.

Since

1.0

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CosmosDBSpark
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CosmosDBSpark(sparkSession: SparkSession, readConfig: Config)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  15. val readConfig: Config

  16. val sparkSession: SparkSession

  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  18. def toDF(schema: StructType): DataFrame

    Creates a DataFrame based on the provided schema.

    Creates a DataFrame based on the provided schema.

    schema

    the schema representing the DataFrame.

    returns

    a DataFrame.

  19. def toDF[T](beanClass: Class[T]): 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.

    T

    The bean class type to shape the data from CosmosDB into

    beanClass

    encapsulating the data from CosmosDB

    returns

    a DataFrame

  20. def toDF[T <: Product]()(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): 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 CosmosDB versions < 3.2.

    T

    The optional type of the data from CosmosDB, if not provided the schema will be inferred from the collection

    returns

    a DataFrame

  21. def toDS[T](beanClass: Class[T]): Dataset[T]

    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.

    T

    The type of the data from CosmosDB

    returns

  22. def toDS[T <: Product]()(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Dataset[T]

    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.

    T

    The type of the data from CosmosDB

    returns

  23. def toJavaRDD(): JavaCosmosDBRDD

    Creates a JavaRDD for the collection

    Creates a JavaRDD for the collection

    returns

    a JavaCosmosDBRDD

  24. def toRDD: CosmosDBRDD

    Creates a RDD for the collection

    Creates a RDD for the collection

    returns

    a CosmosDBRDD[D]

  25. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped