Class/Object

com.microsoft.azure.cosmosdb.spark

CosmosDBSpark

Related Docs: object CosmosDBSpark | package spark

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  7. def finalize(): Unit

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  13. val readConfig: Config

    Permalink
  14. val sparkSession: SparkSession

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

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

    Permalink

    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.

  17. def toDF[T](beanClass: Class[T]): DataFrame

    Permalink

    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

  18. def toDF[T <: Product]()(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): DataFrame

    Permalink

    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

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

    Permalink

    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

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

    Permalink

    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

  21. def toJavaRDD(): JavaCosmosDBRDD

    Permalink

    Creates a JavaRDD for the collection

    Creates a JavaRDD for the collection

    returns

    a JavaCosmosDBRDD

  22. def toRDD: CosmosDBRDD

    Permalink

    Creates a RDD for the collection

    Creates a RDD for the collection

    returns

    a CosmosDBRDD[D]

  23. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped