object SparkTestingUtils
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SparkTestingUtils
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- class StringColumnExtensions extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit def addDTMethods(s: String): StringColumnExtensions
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
assertDFEquals(expectedUnsorted: DataFrame, resultUnsorted: DataFrame, maxUnequalRowsToShow: Int, tol: Double = 0.0): Either[Error, String]
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.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- def convertStringValueToDatatype(dataType: DataType, value: String): Any
- def createDF(spark: SparkSession, columns: Seq[String], values: Seq[Seq[Any]], defaults: Map[String, Any], typeMap: Map[String, DataType], port: String): DataFrame
- def createDfFromResourceFiles(spark: SparkSession, schemaDefinitionPath: String, dataPath: String, port: String): DataFrame
- def createDfFromSchemaFile(spark: SparkSession, schemaDefinitionPath: String, port: String, columns: Seq[String], values: Seq[Seq[Any]]): DataFrame
- def defaultForDatatype: PartialFunction[DataType, Any]
- def defaultsForSchema(schema: StructType): Map[String, Any]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mkString(row: Row, sep: String): String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def nullify(df: DataFrame): DataFrame
- def postProcess(origDf: DataFrame): DataFrame
- def readData(spark: SparkSession, schema: StructType, path: String): DataFrame
- def readResource(path: String): String
- def rowEquals(r1: Row, r2: Row, tol: Double): Boolean
- def schemaToFieldMap(schema: StructType): Map[String, DataType]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def writeData(pathPrefix: String, fileName: String, df: DataFrame, separator: String, maxRows: Int = 100): Unit
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.