Object

io.prophecy.libs

SparkTestingUtils

Related Doc: package libs

Permalink

object SparkTestingUtils

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

Type Members

  1. class StringColumnExtensions extends AnyRef

    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. implicit def addDTMethods(s: String): StringColumnExtensions

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def assertDFEquals(expectedUnsorted: DataFrame, resultUnsorted: DataFrame, maxUnequalRowsToShow: Int, tol: Double = 0.0): Either[Error, String]

    Permalink

    Compares if two DataFrames are equal, checks that the schemas are the same.

    Compares if two DataFrames are equal, checks that the schemas are the same. When comparing inexact fields uses tol.

    maxUnequalRowsToShow

    maximum unequal rows to expose

    tol

    max acceptable tolerance, should be less than 1.

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. def convertStringValueToDatatype(dataType: DataType, value: String): Any

    Permalink
  9. def createDF(spark: SparkSession, columns: Seq[String], values: Seq[Seq[Any]], defaults: Map[String, Any], typeMap: Map[String, DataType], port: String): DataFrame

    Permalink
  10. def createDfFromResourceFiles(spark: SparkSession, schemaDefinitionPath: String, dataPath: String, port: String): DataFrame

    Permalink
  11. def createDfFromSchemaFile(spark: SparkSession, schemaDefinitionPath: String, port: String, columns: Seq[String], values: Seq[Seq[Any]]): DataFrame

    Permalink
  12. def defaultForDatatype: PartialFunction[DataType, Any]

    Permalink
  13. def defaultsForSchema(schema: StructType): Map[String, Any]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def mkString(row: Row, sep: String): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  23. def nullify(df: DataFrame): DataFrame

    Permalink
  24. def postProcess(origDf: DataFrame): DataFrame

    Permalink
  25. def readData(spark: SparkSession, schema: StructType, path: String): DataFrame

    Permalink
  26. def readResource(path: String): String

    Permalink
  27. def rowEquals(r1: Row, r2: Row, tol: Double): Boolean

    Permalink
  28. def schemaToFieldMap(schema: StructType): Map[String, DataType]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def writeData(pathPrefix: String, fileName: String, df: DataFrame, separator: String, maxRows: Int = 100): Unit

    Permalink

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped