Class

za.co.absa.spark.commons.implicits.DataFrameImplicits

DataFrameEnhancements

Related Doc: package DataFrameImplicits

Permalink

implicit class DataFrameEnhancements extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DataFrameEnhancements
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DataFrameEnhancements(df: DataFrame)

    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. def alignSchema(structType: StructType): DataFrame

    Permalink

    Using utils selector from getDataFrameSelector aligns the utils of a DataFrame to the selector for operations where utils order might be important (e.g.

    Using utils selector from getDataFrameSelector aligns the utils of a DataFrame to the selector for operations where utils order might be important (e.g. hashing the whole rows and using except)

    structType

    model structType for the alignment of df

    returns

    Returns aligned and filtered utils

  5. def alignSchema(selector: List[Column]): DataFrame

    Permalink

    Using utils selector returned from StructTypeEnhancements.getDataFrameSelector aligns the utils of a DataFrame to the selector for operations where utils order might be important (e.g.

    Using utils selector returned from StructTypeEnhancements.getDataFrameSelector aligns the utils of a DataFrame to the selector for operations where utils order might be important (e.g. hashing the whole rows and using except)

    selector

    model structType for the alignment of df

    returns

    Returns aligned and filtered utils

  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def dataAsString(numRows: Int, truncate: Int, vertical: Boolean): String

    Permalink
  9. def dataAsString(numRows: Int, truncate: Int): String

    Permalink
  10. def dataAsString(numRows: Int, truncate: Boolean): String

    Permalink
  11. def dataAsString(truncate: Boolean): String

    Permalink
  12. def dataAsString(): String

    Permalink
  13. val df: DataFrame

    Permalink
  14. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def withColumnIfDoesNotExist(ifExists: (DataFrame, String) ⇒ DataFrame)(colName: String, colExpr: Column): DataFrame

    Permalink

    Adds a column to a dataframe if it does not exist

    Adds a column to a dataframe if it does not exist

    ifExists

    A function to apply when the column already exists

    colName

    A column to add if it does not exist already

    colExpr

    An expression for the column to add

    returns

    a new dataframe with the new column

Inherited from AnyRef

Inherited from Any

Ungrouped