Trait

com.holdenkarau.spark.testing

StreamingSuiteBase

Related Doc: package testing

Permalink

trait StreamingSuiteBase extends BeforeAndAfterAll with Logging with StreamingSuiteCommon with SharedSparkContext

This is the base trait for Spark Streaming testsuites. This provides basic functionality to run user-defined set of input on user-defined stream operations, and verify the output.

Self Type
StreamingSuiteBase with Suite
Linear Supertypes
SharedSparkContext, StreamingSuiteCommon, SparkContextProvider, Logging, BeforeAndAfterAll, SuiteMixin, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StreamingSuiteBase
  2. SharedSparkContext
  3. StreamingSuiteCommon
  4. SparkContextProvider
  5. Logging
  6. BeforeAndAfterAll
  7. SuiteMixin
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def expectedTestCount(filter: Filter): Int

    Permalink
    Definition Classes
    SuiteMixin
  2. abstract def nestedSuites: IndexedSeq[Suite]

    Permalink
    Definition Classes
    SuiteMixin
  3. abstract def rerunner: Option[String]

    Permalink
    Definition Classes
    SuiteMixin
  4. abstract def runNestedSuites(args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    SuiteMixin
  5. abstract def runTest(testName: String, args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    SuiteMixin
  6. abstract def runTests(testName: Option[String], args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    SuiteMixin
  7. abstract val styleName: String

    Permalink
    Definition Classes
    SuiteMixin
  8. abstract def suiteId: String

    Permalink
    Definition Classes
    SuiteMixin
  9. abstract def suiteName: String

    Permalink
    Definition Classes
    SuiteMixin
  10. abstract def tags: Map[String, Set[String]]

    Permalink
    Definition Classes
    SuiteMixin
  11. abstract def testDataFor(testName: String, theConfigMap: ConfigMap): TestData

    Permalink
    Definition Classes
    SuiteMixin
  12. abstract def testNames: Set[String]

    Permalink
    Definition Classes
    SuiteMixin

Concrete 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 actuallyWait: Boolean

    Permalink
    Definition Classes
    StreamingSuiteCommon
  5. def afterAll(): Unit

    Permalink
    Definition Classes
    StreamingSuiteBaseSharedSparkContext → BeforeAndAfterAll
  6. def appID: String

    Permalink
    Definition Classes
    SparkContextProvider
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def batchDuration: Duration

    Permalink
    Definition Classes
    StreamingSuiteCommon
  9. def beforeAll(): Unit

    Permalink
    Definition Classes
    StreamingSuiteBaseSharedSparkContext → BeforeAndAfterAll
  10. lazy val checkpointDir: String

    Permalink
    Definition Classes
    StreamingSuiteCommon
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def conf: SparkConf

    Permalink
    Definition Classes
    StreamingSuiteCommon → SparkContextProvider
  13. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. val eventuallyTimeout: Timeout

    Permalink
    Definition Classes
    StreamingSuiteCommon
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def framework: String

    Permalink
    Definition Classes
    StreamingSuiteCommon
  18. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. val invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected: Boolean

    Permalink
    Definition Classes
    BeforeAndAfterAll
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  23. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  24. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  26. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  27. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  28. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  29. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  30. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  31. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  32. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  33. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  34. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  35. def master: String

    Permalink
    Definition Classes
    StreamingSuiteCommon
  36. def maxWaitTimeMillis: Int

    Permalink
    Definition Classes
    StreamingSuiteCommon
  37. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  40. def numInputPartitions: Int

    Permalink
    Definition Classes
    StreamingSuiteCommon
  41. def run(testName: Option[String], args: Args): Status

    Permalink
    Definition Classes
    BeforeAndAfterAll → SuiteMixin
  42. def sc: SparkContext

    Permalink
  43. def setup(sc: SparkContext): Unit

    Permalink

    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
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  45. def testOperation[U, V, W](input1: Seq[Seq[U]], input2: Seq[Seq[V]], operation: (DStream[U], DStream[V]) ⇒ DStream[W], expectedOutput: Seq[Seq[W]], ordered: Boolean)(implicit arg0: ClassTag[U], arg1: ClassTag[V], arg2: ClassTag[W], equality: Equality[W]): Unit

    Permalink

    Test binary DStream operation with two lists of inputs, with number of batches to run same as the number of input values.

    Test binary DStream operation with two lists of inputs, with number of batches to run same as the number of input values. The size of the two input lists should be the same.

    Each input micro-batch is a list of values or as null to simulate empty batch.

    input1

    First sequence of input collections

    input2

    Second sequence of input collections

    operation

    Binary DStream operation to be applied to the 2 inputs

    expectedOutput

    Sequence of expected output collections

    ordered

    Compare output values with expected output values within the same output batch ordered or unOrdered. Comparing doubles may not work well in case of unordered.

  46. def testOperation[U, V](input: Seq[Seq[U]], operation: (DStream[U]) ⇒ DStream[V], expectedOutput: Seq[Seq[V]], ordered: Boolean)(implicit arg0: ClassTag[U], arg1: ClassTag[V], equality: Equality[V]): Unit

    Permalink

    Test unary DStream operation with a list of inputs, with number of batches to run same as the number of input values.

    Test unary DStream operation with a list of inputs, with number of batches to run same as the number of input values.

    Each input micro-batch is a list of values or as null to simulate empty batch.

    input

    Sequence of input collections

    operation

    Binary DStream operation to be applied to the 2 inputs

    expectedOutput

    Sequence of expected output collections

    ordered

    Compare output values with expected output values within the same output batch ordered or unordered. Comparing doubles may not work well in case of unordered.

  47. def testOperation[U, V, W](input1: Seq[Seq[U]], input2: Seq[Seq[V]], operation: (DStream[U], DStream[V]) ⇒ DStream[W], expectedOutput: Seq[Seq[W]])(implicit arg0: ClassTag[U], arg1: ClassTag[V], arg2: ClassTag[W], equality: Equality[W]): Unit

    Permalink
  48. def testOperation[U, V](input: Seq[Seq[U]], operation: (DStream[U]) ⇒ DStream[V], expectedOutput: Seq[Seq[V]])(implicit arg0: ClassTag[U], arg1: ClassTag[V], equality: Equality[V]): Unit

    Permalink
  49. def testOperationWithRDD[U, V, W](input1: Seq[Seq[U]], input2: Seq[V], operation: (DStream[U], RDD[V]) ⇒ DStream[W], expectedOutput: Seq[Seq[W]], ordered: Boolean)(implicit arg0: ClassTag[U], arg1: ClassTag[V], arg2: ClassTag[W], equality: Equality[W]): Unit

    Permalink

    Test binary DStream and RDD operation with two lists of inputs, with number of batches to run same as the number of input values corresponding to the DStream.

    Test binary DStream and RDD operation with two lists of inputs, with number of batches to run same as the number of input values corresponding to the DStream.

    Each input micro-batch is a list of values or as null to simulate empty batch.

    input1

    Sequence of input collections corresponding to the DStream

    input2

    Sequence of input values corresponding to the RDD

    operation

    Binary DStream and RDD operation to be applied to the 2 inputs

    expectedOutput

    Sequence of expected output collections

    ordered

    Compare output values with expected output values within the same output batch ordered or unOrdered. Comparing doubles may not work well in case of unordered.

  50. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  51. def useManualClock: Boolean

    Permalink
    Definition Classes
    StreamingSuiteCommon
  52. def verifyOutput[V](output: Seq[Seq[V]], expectedOutput: Seq[Seq[V]], ordered: Boolean)(implicit arg0: ClassTag[V], equality: Equality[V]): Unit

    Permalink

    Verify whether the output values after running a DStream operation is same as the expected output values, by comparing the output collections either as lists (order matters) or sets (order does not matter)

    Verify whether the output values after running a DStream operation is same as the expected output values, by comparing the output collections either as lists (order matters) or sets (order does not matter)

    ordered

    Compare output values with expected output values within the same output batch ordered or unordered. Comparing doubles may not work well in case of unordered.

  53. final def wait(arg0: Long, arg1: Int): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SharedSparkContext

Inherited from StreamingSuiteCommon

Inherited from SparkContextProvider

Inherited from Logging

Inherited from BeforeAndAfterAll

Inherited from SuiteMixin

Inherited from AnyRef

Inherited from Any

Ungrouped