t

com.holdenkarau.spark.testing

StructuredStreamingBase

trait StructuredStreamingBase extends DataFrameSuiteBase with StructuredStreamingBaseLike

Early Experimental Structured Streaming Base.

Self Type
StructuredStreamingBase with Suite
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StructuredStreamingBase
  2. StructuredStreamingBaseLike
  3. DataFrameSuiteBase
  4. DataFrameSuiteBaseLike
  5. Serializable
  6. Serializable
  7. SharedSparkContext
  8. SparkContextProvider
  9. BeforeAndAfterAll
  10. SuiteMixin
  11. TestSuite
  12. TestSuiteLike
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def expectedTestCount(filter: Filter): Int
    Definition Classes
    SuiteMixin
  2. abstract def nestedSuites: IndexedSeq[Suite]
    Definition Classes
    SuiteMixin
  3. abstract def rerunner: Option[String]
    Definition Classes
    SuiteMixin
  4. abstract def runNestedSuites(args: Args): Status
    Attributes
    protected
    Definition Classes
    SuiteMixin
  5. abstract def runTest(testName: String, args: Args): Status
    Attributes
    protected
    Definition Classes
    SuiteMixin
  6. abstract def runTests(testName: Option[String], args: Args): Status
    Attributes
    protected
    Definition Classes
    SuiteMixin
  7. abstract def suiteId: String
    Definition Classes
    SuiteMixin
  8. abstract def suiteName: String
    Definition Classes
    SuiteMixin
  9. abstract def tags: Map[String, Set[String]]
    Definition Classes
    SuiteMixin
  10. abstract def testDataFor(testName: String, theConfigMap: ConfigMap): TestData
    Definition Classes
    SuiteMixin
  11. abstract def testNames: Set[String]
    Definition Classes
    SuiteMixin
  12. abstract val styleName: String
    Definition Classes
    SuiteMixin
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The styleName lifecycle method has been deprecated and will be removed in a future version of ScalaTest with no replacement.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def afterAll(): Unit
    Definition Classes
    DataFrameSuiteBaseSharedSparkContext → BeforeAndAfterAll
  5. def appID: String
    Definition Classes
    SparkContextProvider
  6. def appName: String
    Definition Classes
    SparkContextProvider
  7. def approxEquals(r1: Row, r2: Row, tol: Double, tolTimestamp: Duration): Boolean
    Definition Classes
    DataFrameSuiteBaseLike
  8. def approxEquals(r1: Row, r2: Row, tolTimestamp: Duration): Boolean
    Definition Classes
    DataFrameSuiteBaseLike
  9. def approxEquals(r1: Row, r2: Row, tol: Double): Boolean
    Definition Classes
    DataFrameSuiteBaseLike
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def assert[U](message: String, expected: U, actual: U)(implicit CT: ClassTag[U]): Unit
    Definition Classes
    TestSuiteTestSuiteLike
  12. def assert[U](expected: U, actual: U)(implicit CT: ClassTag[U]): Unit
    Definition Classes
    TestSuiteTestSuiteLike
  13. def assertDataFrameApproximateEquals(expected: DataFrame, result: DataFrame, tol: Double, tolTimestamp: Duration, customShow: (DataFrame) ⇒ Unit = _.show()): Unit

    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 & tolTimestamp.

    tol

    max acceptable numeric tolerance, should be less than 1.

    tolTimestamp

    max acceptable timestamp tolerance.

    customShow

    unit function to customize the show method when dataframes are not equal. IE: df.show(false) or df.toJSON.show(false).

    Definition Classes
    DataFrameSuiteBaseLike
  14. def assertDataFrameDataEquals(expected: DataFrame, result: DataFrame): Unit

    Compares if two DataFrames are equal without caring about order of rows, by finding elements in one DataFrame that is not in the other.

    Compares if two DataFrames are equal without caring about order of rows, by finding elements in one DataFrame that is not in the other. The resulting DataFrame should be empty inferring the two DataFrames have the same elements. Does not compare the schema.

    Definition Classes
    DataFrameSuiteBaseLike
  15. def assertDataFrameEquals(expected: DataFrame, result: DataFrame, customShow: (DataFrame) ⇒ Unit = _.show()): Unit

    Compares if two DataFrames are equal, checks the schema and then if that matches checks if the rows are equal.

    Compares if two DataFrames are equal, checks the schema and then if that matches checks if the rows are equal.

    customShow

    unit function to customize the show method when dataframes are not equal. IE: df.show(false) or df.toJSON.show(false).

    Definition Classes
    DataFrameSuiteBaseLike
  16. def assertDataFrameNoOrderEquals(expected: DataFrame, result: DataFrame): Unit

    Compares if two DataFrames are equal without caring about order of rows, by finding elements in one DataFrame that is not in the other.

    Compares if two DataFrames are equal without caring about order of rows, by finding elements in one DataFrame that is not in the other. The resulting DataFrame should be empty inferring the two DataFrames have the same elements. Also verifies that the schema is identical.

    Definition Classes
    DataFrameSuiteBaseLike
  17. def assertEmpty[U](arr: Array[U])(implicit CT: ClassTag[U]): Unit
    Definition Classes
    TestSuiteTestSuiteLike
  18. def assertSchemasEqual(expected: StructType, result: StructType): Unit

    Compare if two schemas are equal, ignoring autoGeneratedAlias magic

    Compare if two schemas are equal, ignoring autoGeneratedAlias magic

    Definition Classes
    DataFrameSuiteBaseLike
  19. def assertSmallDataFrameDataEquals(expected: DataFrame, result: DataFrame): Unit

    Compares if two DataFrames are equal without caring about order of rows, by finding elements in one DataFrame that is not in the other.

    Compares if two DataFrames are equal without caring about order of rows, by finding elements in one DataFrame that is not in the other. Similar to the function assertDataFrameDataEquals but for small DataFrame that can be collected in memory for the comparison.

    Definition Classes
    DataFrameSuiteBaseLike
  20. def assertTrue(expected: Boolean): Unit
    Definition Classes
    TestSuiteTestSuiteLike
  21. def beforeAll(): Unit
    Definition Classes
    DataFrameSuiteBaseSharedSparkContext → BeforeAndAfterAll
  22. def builder(): Builder

    Constructs a configuration for hive or iceberg, where the metastore is located in a temp directory.

    Constructs a configuration for hive or iceberg, where the metastore is located in a temp directory.

    Definition Classes
    DataFrameSuiteBaseLike
  23. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  24. def conf: SparkConf
    Definition Classes
    SparkContextProvider
  25. val count: Int
    Definition Classes
    StructuredStreamingBaseLike
  26. def enableHiveSupport: Boolean
    Attributes
    protected
    Definition Classes
    DataFrameSuiteBaseLike
  27. def enableIcebergSupport: Boolean
    Attributes
    protected
    Definition Classes
    DataFrameSuiteBaseLike
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  30. def fail(message: String): Unit
    Definition Classes
    TestSuiteTestSuiteLike
  31. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  32. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  33. val icebergWarehouse: String
    Definition Classes
    DataFrameSuiteBaseLike
  34. implicit def impSqlContext: SQLContext
    Attributes
    protected
    Definition Classes
    DataFrameSuiteBaseLike
  35. val invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected: Boolean
    Definition Classes
    BeforeAndAfterAll
  36. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  37. lazy val localMetastorePath: String
    Definition Classes
    DataFrameSuiteBaseLike
  38. lazy val localWarehousePath: String
    Definition Classes
    DataFrameSuiteBaseLike
  39. val maxUnequalRowsToShow: Int
    Definition Classes
    DataFrameSuiteBaseLike
  40. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  41. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  42. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  43. implicit def reuseContextIfPossible: Boolean
    Attributes
    protected
    Definition Classes
    SharedSparkContext
  44. def run(testName: Option[String], args: Args): Status
    Definition Classes
    BeforeAndAfterAll → SuiteMixin
  45. def sc: SparkContext
  46. def setup(sc: SparkContext): Unit

    Setup work to be called when creating a new SparkContext.

    Setup work to be called when creating a new SparkContext. Default implementation currently sets a checkpoint directory.

    This _should_ be called by the context provider automatically.

    Definition Classes
    SparkContextProvider
  47. lazy val spark: SparkSession
    Definition Classes
    DataFrameSuiteBaseLike
    Annotations
    @transient()
  48. def sqlBeforeAllTestCases(): Unit
    Definition Classes
    DataFrameSuiteBaseLike
  49. lazy val sqlContext: SQLContext
    Definition Classes
    DataFrameSuiteBaseLike
    Annotations
    @transient()
  50. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  51. lazy val tempDir: File
    Definition Classes
    DataFrameSuiteBaseLike
  52. def testSimpleStreamEndState[T, R](spark: SparkSession, input: Seq[Seq[T]], expected: Seq[R], mode: String, queryFunction: (Dataset[T]) ⇒ Dataset[R])(implicit arg0: Encoder[T], arg1: Encoder[R]): Assertion

    Test a simple streams end state

  53. def toString(): String
    Definition Classes
    AnyRef → Any
  54. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  56. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. def withSQLConf(pairs: (String, String)*)(f: ⇒ Unit): Unit

    Sets all SQL configurations specified in pairs, calls f, and then restores all SQL configurations.

    Sets all SQL configurations specified in pairs, calls f, and then restores all SQL configurations. Taken from Spark SQLHelper.

    Attributes
    protected
    Definition Classes
    DataFrameSuiteBase

Deprecated Value Members

  1. def assertDataFrameApproximateEquals(expected: DataFrame, result: DataFrame, tol: Double): Unit

    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.

    tol

    max acceptable tolerance for numeric (between(0, 1)) & timestamp (millis).

    Definition Classes
    DataFrameSuiteBaseLike
    Annotations
    @deprecated
    Deprecated

    (Since version 1.5.0) Use assertDataFrameApproximateEquals with timestamp tolerance

  2. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from DataFrameSuiteBase

Inherited from DataFrameSuiteBaseLike

Inherited from Serializable

Inherited from Serializable

Inherited from SharedSparkContext

Inherited from SparkContextProvider

Inherited from BeforeAndAfterAll

Inherited from SuiteMixin

Inherited from TestSuite

Inherited from TestSuiteLike

Inherited from AnyRef

Inherited from Any

Ungrouped