com.sequoiadb.spark.schema

SequoiadbRowConverter

object SequoiadbRowConverter extends JsonSupport with Serializable

SequoiadbRowConverter support RDD transformations from BSONObject to Row and vice versa

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

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 asRow(schema: StructType, rdd: RDD[BSONObject]): RDD[Row]

    schema

    RDD native schema

    rdd

    Current native RDD

    returns

    A brand new RDD of Spark SQL Row type.

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def dbObjectToMap(dBObject: BSONObject): Map[String, AnyRef]

    It creates a map with dbObject attribute values.

    It creates a map with dbObject attribute values.

    dBObject

    Object to be splitted into attribute tuples.

    returns

    A map with dbObject attributes.

  10. def enforceCorrectType(value: Any, desiredType: DataType): Any

    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
  11. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

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

    Given a schema, it converts a JSON object (as map) into a Row

    Given a schema, it converts a JSON object (as map) into a Row

    json

    DBObject map

    schema

    Schema

    returns

    The converted row

  21. def rowAsDBObject(row: Row, schema: StructType): BSONObject

    Given a schema, it converts a Row into a DBObject

    Given a schema, it converts a Row into a DBObject

    row

    Row to be converted

    schema

    Schema

    returns

    The converted DBObject

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

    Definition Classes
    AnyRef
  23. def toDBObject(value: Any, dataType: DataType): Any

    It converts some Row attribute value into a DBObject field

    It converts some Row attribute value into a DBObject field

    value

    Row attribute

    dataType

    Attribute type

    returns

    The converted value into a DBObject field.

  24. def toSQL(value: Any, dataType: DataType): Any

    It converts some DBObject attribute value into a Row field

    It converts some DBObject attribute value into a Row field

    value

    DBObject attribute

    dataType

    Attribute type

    returns

    The converted value into a Row field.

  25. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from JsonSupport

Inherited from AnyRef

Inherited from Any

Ungrouped