Class

com.microsoft.azure.cosmosdb.spark.schema

CosmosDBRowConverter

Related Doc: package schema

Permalink

class CosmosDBRowConverter extends RowConverter[documentdb.Document] with JsonSupport with Serializable with CosmosDBLoggingTrait

Linear Supertypes
CosmosDBLoggingTrait, Serializable, Serializable, JsonSupport, RowConverter[documentdb.Document], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CosmosDBRowConverter
  2. CosmosDBLoggingTrait
  3. Serializable
  4. Serializable
  5. JsonSupport
  6. RowConverter
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CosmosDBRowConverter(serializationConfig: SerializationConfig = ...)

    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 asRow(schema: StructType, array: Array[documentdb.Document]): Array[Row]

    Permalink
  6. def asRow(schema: StructType, rdd: RDD[documentdb.Document]): RDD[Row]

    Permalink

    Given a known schema, it maps an RDD of some specified type to an

    Given a known schema, it maps an RDD of some specified type to an

    RDD[Row
    schema

    RDD native schema

    rdd

    Current native RDD

    returns

    A brand new RDD of Spark SQL Row type.

    Definition Classes
    CosmosDBRowConverterRowConverter
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def documentToMap(document: documentdb.Document): Map[String, AnyRef]

    Permalink
  9. def enforceCorrectType(value: Any, desiredType: org.apache.spark.sql.types.DataType): Any

    Permalink

    Tries to convert some scala value to another compatible given type

    Tries to convert some scala value to another compatible given type

    value

    Value to be converted

    desiredType

    Destiny type

    returns

    Converted value

    Attributes
    protected
    Definition Classes
    JsonSupport
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. def internalRowToJSONObject(internalRow: InternalRow, schema: StructType): JSONObject

    Permalink
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    CosmosDBLoggingTrait
  18. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    CosmosDBLoggingTrait
  19. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    CosmosDBLoggingTrait
  20. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    CosmosDBLoggingTrait
  21. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    CosmosDBLoggingTrait
  22. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    CosmosDBLoggingTrait
  23. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    CosmosDBLoggingTrait
  24. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    CosmosDBLoggingTrait
  25. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    CosmosDBLoggingTrait
  26. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    CosmosDBLoggingTrait
  27. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    CosmosDBLoggingTrait
  28. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    CosmosDBLoggingTrait
  29. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  32. def recordAsRow(json: Map[String, AnyRef], schema: StructType): Row

    Permalink
  33. def rowToJSONObject(row: Row): JSONObject

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

    Permalink
    Definition Classes
    AnyRef
  35. def toSQL(value: Any, dataType: org.apache.spark.sql.types.DataType): Any

    Permalink
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

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

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

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

Inherited from CosmosDBLoggingTrait

Inherited from Serializable

Inherited from Serializable

Inherited from JsonSupport

Inherited from RowConverter[documentdb.Document]

Inherited from AnyRef

Inherited from Any

Ungrouped