Class

org.opencypher.spark.impl.table.SparkTable

DataFrameTransformation

Related Doc: package SparkTable

Permalink

implicit final class DataFrameTransformation extends AnyVal

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

Instance Constructors

  1. new DataFrameTransformation(df: DataFrame)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def castToLong: DataFrame

    Permalink

    Cast all integer columns in a DataFrame to long.

    Cast all integer columns in a DataFrame to long.

    returns

    a DataFrame with all integer values cast to long

  6. def decodeHexStringToBinary(hexColumns: Set[String]): DataFrame

    Permalink
  7. val df: DataFrame

    Permalink
  8. def encodeBinaryToHexString: DataFrame

    Permalink
  9. def encodeIdColumns(idColumns: String*): Seq[Column]

    Permalink
  10. def getClass(): Class[_ <: AnyVal]

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

    Permalink
    Definition Classes
    Any
  12. def prefixColumns(prefix: String): DataFrame

    Permalink
  13. def removePrefix(prefix: String): DataFrame

    Permalink
  14. def safeAddColumn(name: String, col: Column): DataFrame

    Permalink
  15. def safeAddColumns(columns: (String, Column)*): DataFrame

    Permalink
  16. def safeDropColumns(names: String*): DataFrame

    Permalink
  17. def safeJoin(other: DataFrame, joinCols: Seq[(String, String)], joinType: String): DataFrame

    Permalink
  18. def safeRenameColumns(renamings: Map[String, String]): DataFrame

    Permalink
  19. def safeRenameColumns(renamings: (String, String)*): DataFrame

    Permalink
  20. def safeReplaceColumn(name: String, newColumn: Column): DataFrame

    Permalink
  21. def toString(): String

    Permalink
    Definition Classes
    Any
  22. def transformColumns(cols: String*)(f: (Column) ⇒ Column): DataFrame

    Permalink
  23. def withCypherCompatibleTypes: DataFrame

    Permalink

    Normalises the DataFrame by lifting numeric fields to Long and similar ops.

  24. def withHashColumn(columns: Seq[Column], hashColumn: String): DataFrame

    Permalink

    Adds a new column hashColumn containing the hash value of the given input columns.

    Adds a new column hashColumn containing the hash value of the given input columns.

    The hash is generated using org.apache.spark.sql.catalyst.expressions.Murmur3Hash based on the given column sequence. To decrease collision probability, we:

    1) generate a first hash for the given column sequence 2) shift the hash into the upper bits of a 64 bit long 3) generate a second hash using the reversed input column sequence 4) store the hash in the lower 32 bits of the final id

    columns

    input columns for the hash function

    hashColumn

    column storing the result of the hash function

    returns

    DataFrame with an additional column that contains the hash ID

  25. def withSerializedIdColumn(columns: Seq[Column], serializedColumn: String): DataFrame

    Permalink

    Adds a new column serializedColumn containing the serialized values of the given input columns.

    Adds a new column serializedColumn containing the serialized values of the given input columns.

    columns

    input columns for the serialization function

    serializedColumn

    column storing the result of the serialization function

    returns

    DataFrame with an additional column that contains the serialized ID

Inherited from AnyVal

Inherited from Any

Ungrouped