com.holdenkarau.spark.testing

StreamingActionBase

trait StreamingActionBase extends StreamingSuiteBase

Methods for testing Spark actions. Because actions don't return a DStream, you will need to verify the results of your test against mocks.

Self Type
StreamingActionBase with Suite
Linear Supertypes
StreamingSuiteBase, SharedSparkContext, StreamingSuiteCommon, SparkContextProvider, Logging, BeforeAndAfterAll, SuiteMixin, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StreamingActionBase
  2. StreamingSuiteBase
  3. SharedSparkContext
  4. StreamingSuiteCommon
  5. SparkContextProvider
  6. Logging
  7. BeforeAndAfterAll
  8. SuiteMixin
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
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 val styleName: String

    Definition Classes
    SuiteMixin
  8. abstract def suiteId: String

    Definition Classes
    SuiteMixin
  9. abstract def suiteName: String

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

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

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

    Definition Classes
    SuiteMixin

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def actuallyWait: Boolean

    Definition Classes
    StreamingSuiteCommon
  7. def afterAll(): Unit

    Definition Classes
    StreamingSuiteBaseSharedSparkContext → BeforeAndAfterAll
  8. def appID: String

    Definition Classes
    SparkContextProvider
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. val batchCountListener: BatchCountListener

  11. def batchDuration: Duration

    Definition Classes
    StreamingSuiteCommon
  12. def beforeAll(): Unit

    Definition Classes
    StreamingSuiteBaseSharedSparkContext → BeforeAndAfterAll
  13. lazy val checkpointDir: String

    Definition Classes
    StreamingSuiteCommon
  14. def clone(): AnyRef

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

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

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

    Definition Classes
    AnyRef → Any
  18. val eventuallyTimeout: Timeout

    Definition Classes
    StreamingSuiteCommon
  19. def finalize(): Unit

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

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

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

    Definition Classes
    AnyRef → Any
  23. val invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected: Boolean

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

    Definition Classes
    Any
  25. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  26. def log: Logger

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    Logging
  33. def logName: String

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

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

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

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

    Attributes
    protected
    Definition Classes
    Logging
  38. def master: String

    Definition Classes
    StreamingSuiteCommon
  39. def maxWaitTimeMillis: Int

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

    Definition Classes
    AnyRef
  41. final def notify(): Unit

    Definition Classes
    AnyRef
  42. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  43. def numInputPartitions: Int

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

    Definition Classes
    BeforeAndAfterAll → SuiteMixin
  45. def runAction[U](input: Seq[Seq[U]], operation: (DStream[U]) ⇒ Unit)(implicit arg0: ClassTag[U]): Unit

    Execute unary DStream operation with a list of inputs and no expected output

    Execute unary DStream operation with a list of inputs and no expected output

    input

    Sequence of input collections

    operation

    Unary DStream operation to be applied to the input

  46. def sc: SparkContext

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

    Definition Classes
    AnyRef
  49. 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

    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.

    Definition Classes
    StreamingSuiteBase
  50. 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

    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.

    Definition Classes
    StreamingSuiteBase
  51. 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

    Definition Classes
    StreamingSuiteBase
  52. 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

    Definition Classes
    StreamingSuiteBase
  53. 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

    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.

    Definition Classes
    StreamingSuiteBase
  54. def toString(): String

    Definition Classes
    AnyRef → Any
  55. def useManualClock: Boolean

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

    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.

    Definition Classes
    StreamingSuiteBase
  57. final def wait(arg0: Long, arg1: Int): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StreamingSuiteBase

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