Class

io.univalence.sparktest.SparkTest

SparkTestDsOps

Related Doc: package SparkTest

Permalink

implicit class SparkTestDsOps[T] extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SparkTestDsOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SparkTestDsOps(thisDs: Dataset[T])(implicit arg0: Encoder[T])

    Permalink

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def assertApproxEquals(otherDs: Dataset[T], approx: Double): Unit

    Permalink

    Approximate comparison between two Datasets, can be customized using the Spark-Test configuration If the Datasets match the instances of Double, Float, or Timestamp, 'approx' will be used to compare an approximate equality of the two DSs.

    Approximate comparison between two Datasets, can be customized using the Spark-Test configuration If the Datasets match the instances of Double, Float, or Timestamp, 'approx' will be used to compare an approximate equality of the two DSs.

    otherDs

    Dataset to compare to

    approx

    double for the approximate comparison. If the absolute value of the difference between two values is less than approx, then the two values are considered equal.

  6. def assertContains(values: T*): Unit

    Permalink

    Check if all values are present into the dataset.

    Check if all values are present into the dataset. If not, return a AssertionError.

    values

    values that should be in the dataset

  7. def assertEquals(seq: Seq[T]): Unit

    Permalink

    Verify if the Dataset and Sequence are equals, can be customized using the Spark-Test configuration

    Verify if the Dataset and Sequence are equals, can be customized using the Spark-Test configuration

    seq

    Sequence to compare to

    returns

    an exception if the Dataset and the Sequence are not equals

  8. def assertEquals[B](otherDs: Dataset[B])(implicit encB: Encoder[B]): Unit

    Permalink

    Comparison between two Datasets, can be customized using the Spark-Test configuration

    Comparison between two Datasets, can be customized using the Spark-Test configuration

    otherDs

    Dataset to compare to

    returns

    an exception if both Datasets are not equals

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def shouldExist(expr: String): Unit

    Permalink

    Check if at least one row from the Dataset match the sql expression.

    Check if at least one row from the Dataset match the sql expression. If not, return a SparkTestError.

    expr

    expression to match

  20. def shouldExist(pred: (T) ⇒ Boolean): Unit

    Permalink

    Check if at least one row from the Dataset match the predicate.

    Check if at least one row from the Dataset match the predicate. If not, return a SparkTestError.

    pred

    predicate to match

  21. def shouldForAll(expr: String): Unit

    Permalink

    Check if all the rows from the Dataset match the sql expression.

    Check if all the rows from the Dataset match the sql expression. If not, return a SparkTestError.

    expr

    expression to match

  22. def shouldForAll(pred: (T) ⇒ Boolean): Unit

    Permalink

    Check if all the rows from the Dataset match the predicate.

    Check if all the rows from the Dataset match the predicate. If not, return a SparkTestError.

    pred

    predicate to match

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped