package testing
- Alphabetic
- Public
- All
Type Members
- class BatchCountListener extends StreamingListener
-
class
Column extends ColumnGenerator
Previously ColumnGenerator.
Previously ColumnGenerator. Allows the user to specify a generator for a specific column.
-
abstract
class
ColumnGenerator extends Serializable
ColumnGenerator - prevously Column; it is now the base class for all ColumnGenerators.
-
class
ColumnList extends ColumnGenerator
ColumnList allows users to specify custom generators for a list of columns inside a StructType column.
-
trait
DataFrameSuiteBase extends TestSuite with SharedSparkContext with DataFrameSuiteBaseLike
:: Experimental :: Base class for testing Spark DataFrames.
- trait DataFrameSuiteBaseLike extends SparkContextProvider with TestSuiteLike with Serializable
- trait DatasetSuiteBase extends DataFrameSuiteBase with DatasetSuiteBaseLike
- trait DatasetSuiteBaseLike extends DataFrameSuiteBaseLike
- class JavaDataFrameSuiteBase extends SharedJavaSparkContext with DataFrameSuiteBaseLike with JavaTestSuite
- class JavaDatasetSuiteBase extends JavaDataFrameSuiteBase with DatasetSuiteBaseLike with Serializable
-
class
JavaStreamingSuiteBase extends JavaSuiteBase with StreamingSuiteCommon
This is the base trait for Spark Streaming testsuite.
This is the base trait for Spark Streaming testsuite. This provides basic functionality to run user-defined set of input on user-defined stream operations, and verify the output matches as expected.
This implementation is designed to work with JUnit for java users.
Note: this always uses the manual clock to control Spark Streaming's batches.
- class JavaSuiteBase extends SharedJavaSparkContext
- trait JavaTestSuite extends TestSuiteLike
-
trait
LocalSparkContext extends BeforeAndAfterEach with BeforeAndAfterAll
Manages a local
scSparkContextvariable, correctly stopping it after each test. -
trait
PerTestSparkContext extends LocalSparkContext with BeforeAndAfterEach with SparkContextProvider
Provides a local
scSparkContextvariable, correctly stopping it after each test.Provides a local
scSparkContextvariable, correctly stopping it after each test. The stopping logic is provided inLocalSparkContext. -
class
PerfListener extends SparkListener
This listener collects basic execution time information to be used in micro type performance tests.
This listener collects basic execution time information to be used in micro type performance tests. Be careful imposing strict limits as there is a large amount of variability.
- trait Prettify extends AnyRef
- trait RDDComparisons extends RDDComparisonsLike with TestSuite
- trait RDDComparisonsLike extends TestSuiteLike
-
trait
ScalaDataFrameSuiteBase extends AnyFunSuite with DataFrameSuiteBase
Base trait for testing Spark DataFrames in Scala.
-
class
SharedJavaSparkContext extends SparkContextProvider
Shares a local
SparkContextbetween all tests in a suite and closes it at the end -
trait
SharedSparkContext extends BeforeAndAfterAll with SparkContextProvider
Shares a local
SparkContextbetween all tests in a suite and closes it at the end.Shares a local
SparkContextbetween all tests in a suite and closes it at the end. You can share between suites by enabling reuseContextIfPossible. - trait SparkContextProvider extends AnyRef
-
trait
StreamingActionBase extends StreamingSuiteBase
Methods for testing Spark actions.
Methods for testing Spark actions. Because actions don't return a DStream, you will need to verify the results of your test against mocks.
-
trait
StreamingSuiteBase extends BeforeAndAfterAll with Logging with StreamingSuiteCommon with SharedSparkContext
This is the base trait for Spark Streaming testsuites.
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.
-
trait
StructuredStreamingBase extends DataFrameSuiteBase with StructuredStreamingBaseLike
Early Experimental Structured Streaming Base.
- trait StructuredStreamingBaseLike extends SparkContextProvider with TestSuiteLike with Serializable
-
class
TestInputStream[T] extends FriendlyInputDStream[T]
This is a input stream just for the testsuites.
This is a input stream just for the testsuites. This is equivalent to a checkpointable, replayable, reliable message queue like Kafka. It requires a sequence as input, and returns the i_th element at the i_th batch under manual clock.
Based on TestInputStream class from TestSuiteBase in the Apache Spark project.
-
class
TestOutputStream[T] extends Serializable
This is a output stream just for testing.
This is a output stream just for testing.
The buffer contains a sequence of RDD's, each containing a sequence of items
- trait TestSuite extends TestSuiteLike
- trait TestSuiteLike extends AnyRef
Value Members
- object DataFrameSuiteBase extends Serializable
- object DataframeGenerator
- object DatasetGenerator
- object JavaRDDComparisons extends RDDComparisonsLike with JavaTestSuite
- object LocalSparkContext
-
object
MLUserDefinedType
Extractor that matches the UDTs exposed by Spark ML.
- object Prettify extends Prettify
-
object
RDDGenerator
- Annotations
- @Experimental()
- object SparkSessionProvider
- object Utils extends Logging