Package

com.holdenkarau.spark

testing

Permalink

package testing

Visibility
  1. Public
  2. All

Type Members

  1. class BatchCountListener extends StreamingListener

    Permalink
  2. class Column extends ColumnGenerator

    Permalink

    Previously ColumnGenerator.

    Previously ColumnGenerator. Allows the user to specify a generator for a specific column

  3. abstract class ColumnGenerator extends Serializable

    Permalink

    ColumnGenerator - prevously Column; it is now the base class for all ColumnGenerators

  4. class ColumnList extends ColumnGenerator

    Permalink

    ColumnList allows users to specify custom generators for a list of columns inside a StructType column

  5. trait DataFrameSuiteBase extends TestSuite with SharedSparkContext with DataFrameSuiteBaseLike

    Permalink

    :: Experimental :: Base class for testing Spark DataFrames.

  6. trait DataFrameSuiteBaseLike extends SparkContextProvider with TestSuiteLike with Serializable

    Permalink
  7. trait DatasetSuiteBase extends DataFrameSuiteBase with DatasetSuiteBaseLike

    Permalink
  8. trait DatasetSuiteBaseLike extends DataFrameSuiteBaseLike

    Permalink
  9. class HDFSCluster extends HDFSClusterLike

    Permalink
  10. trait HDFSClusterLike extends AnyRef

    Permalink
  11. class JavaDataFrameSuiteBase extends SharedJavaSparkContext with DataFrameSuiteBaseLike with JavaTestSuite

    Permalink
  12. class JavaDatasetSuiteBase extends JavaDataFrameSuiteBase with DatasetSuiteBaseLike with Serializable

    Permalink
  13. class JavaStreamingSuiteBase extends JavaSuiteBase with StreamingSuiteCommon

    Permalink

    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. This implementation is designed to work with JUnit for java users.

    Note: this always uses the manual clock

  14. class JavaSuiteBase extends SharedJavaSparkContext

    Permalink
  15. trait JavaTestSuite extends TestSuiteLike

    Permalink
  16. trait LocalSparkContext extends BeforeAndAfterEach with BeforeAndAfterAll

    Permalink

    Manages a local sc SparkContext variable, correctly stopping it after each test.

  17. trait PerTestSparkContext extends LocalSparkContext with BeforeAndAfterEach with SparkContextProvider

    Permalink

    Provides a local sc SparkContext variable, correctly stopping it after each test.

    Provides a local sc SparkContext variable, correctly stopping it after each test. The stopping logic is provided in LocalSparkContext

  18. class PerfListener extends SparkListener

    Permalink

    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.

  19. trait Prettify extends AnyRef

    Permalink
  20. trait RDDComparisons extends RDDComparisonsLike with TestSuite

    Permalink
  21. trait RDDComparisonsLike extends TestSuiteLike

    Permalink
  22. class SharedJavaSparkContext extends SparkContextProvider

    Permalink
  23. trait SharedMiniCluster extends BeforeAndAfterAll with HDFSClusterLike with YARNClusterLike with SparkContextProvider

    Permalink

    Shares an HDFS MiniCluster based SparkContext between all tests in a suite and closes it at the end.

    Shares an HDFS MiniCluster based SparkContext between all tests in a suite and closes it at the end. This requires that the env variable SPARK_HOME is set. Further more if this is used, all Spark tests must run against the yarn mini cluster (see https://issues.apache.org/jira/browse/SPARK-10812 for details).

  24. trait SharedSparkContext extends BeforeAndAfterAll with SparkContextProvider

    Permalink

    Shares a local SparkContext between all tests in a suite and closes it at the end.

  25. trait SparkContextProvider extends AnyRef

    Permalink
  26. trait StreamingActionBase extends StreamingSuiteBase

    Permalink

    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.

  27. trait StreamingSuiteBase extends BeforeAndAfterAll with Logging with StreamingSuiteCommon with SharedSparkContext

    Permalink

    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.

  28. class TestInputStream[T] extends FriendlyInputDStream[T]

    Permalink

    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 unde manual clock. Based on TestInputStream class from TestSuiteBase in the Apache Spark project.

  29. class TestOutputStream[T] extends Serializable

    Permalink

    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

  30. trait TestSuite extends TestSuiteLike

    Permalink
  31. trait TestSuiteLike extends AnyRef

    Permalink
  32. class YARNCluster extends YARNClusterLike

    Permalink

    Shares an HDFS MiniCluster based SparkContext between all tests in a suite and closes it at the end.

    Shares an HDFS MiniCluster based SparkContext between all tests in a suite and closes it at the end. This requires that the env variable SPARK_HOME is set. Further more if this is used, all Spark tests must run against the yarn mini cluster (see https://issues.apache.org/jira/browse/SPARK-10812 for details).

  33. trait YARNClusterLike extends AnyRef

    Permalink

Value Members

  1. object DataFrameSuiteBase extends Serializable

    Permalink
  2. object DataframeGenerator

    Permalink
  3. object DatasetGenerator

    Permalink
  4. object JavaRDDComparisons extends RDDComparisonsLike with JavaTestSuite

    Permalink
  5. object LocalSparkContext

    Permalink
  6. object Prettify extends Prettify

    Permalink
  7. object RDDGenerator

    Permalink
    Annotations
    @Experimental()
  8. object SparkSessionProvider

    Permalink
  9. object Utils extends Logging

    Permalink

Ungrouped