Trait

com.spotify.scio.testing

BigTableMatchers

Related Doc: package testing

Permalink

trait BigTableMatchers extends SCollectionMatchers

Trait with ScalaTest Matchers for SCollections specific to BigTable output.

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

Type Members

  1. type BTCollection = SCollection[BTRow]

    Permalink
  2. type BTRow = (ByteString, Iterable[Mutation])

    Permalink
  3. sealed trait IterableMatcher[T, B] extends MatcherBuilder[T] with Matcher[T]

    Permalink
    Definition Classes
    SCollectionMatchers
  4. sealed trait MatcherBuilder[T] extends AnyRef

    Permalink
    Definition Classes
    SCollectionMatchers
  5. sealed trait SingleMatcher[T, B] extends MatcherBuilder[T] with Matcher[T]

    Permalink
    Definition Classes
    SCollectionMatchers

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. val beEmpty: IterableMatcher[SCollection[_], Any]

    Permalink

    Assert that the SCollection in question is empty.

    Assert that the SCollection in question is empty.

    Definition Classes
    SCollectionMatchers
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def containCellMutationCase[V](key: ByteString, mutation: MutationCase)(implicit arg0: ClassTag[V]): Matcher[BTCollection]

    Permalink

    Check that the BT collection contains a cell with the given row key and enumerated MutationCase, making no assumptions about the contents of the rest of the collection.

  8. def containColumnFamilies(expectedCFs: String*): Matcher[BTCollection]

    Permalink

    Check that the BT collection contains only the given column families, unique, in any order.

  9. def containInAnyOrder[T](value: Iterable[T])(implicit arg0: ClassTag[T]): IterableMatcher[SCollection[T], T]

    Permalink

    Assert that the SCollection in question contains the provided elements.

    Assert that the SCollection in question contains the provided elements.

    Definition Classes
    SCollectionMatchers
  10. def containRowKeys(expectedKeys: ByteString*): Matcher[BTCollection]

    Permalink

    Check that the BT collection contains only the given keys, in any order.

  11. def containSetCellValue[V](key: ByteString, cf: String, cq: String, value: V)(implicit arg0: ClassTag[V], ser: (V) ⇒ ByteString): Matcher[BTCollection]

    Permalink

    Check that the BT collection contains a cell with the given row key, column family, column qualifier, and deserialized cell value.

    Check that the BT collection contains a cell with the given row key, column family, column qualifier, and deserialized cell value.

    V

    Class of expected value

    key

    Row key the cell should be in

    cf

    Column family the cell should have

    cq

    Column qualifier the cell should have

    value

    Deserialized value of the set cell

    ser

    Serializer to convert value type V to ByteString for BT format

  12. def containSetCellValue[V](key: ByteString, cf: String, value: V)(implicit arg0: ClassTag[V], ser: (V) ⇒ ByteString): Matcher[BTCollection]

    Permalink

    Check that the BT collection contains a cell with the given row key, column family, and deserialized cell value.

    Check that the BT collection contains a cell with the given row key, column family, and deserialized cell value. Column qualifier defaults to the same as column family.

  13. def containSingleValue[T](value: T)(implicit arg0: ClassTag[T]): SingleMatcher[SCollection[T], T]

    Permalink

    Assert that the SCollection in question contains a single provided element.

    Assert that the SCollection in question contains a single provided element.

    Definition Classes
    SCollectionMatchers
  14. def containValue[T](value: T)(implicit arg0: ClassTag[T]): IterableMatcher[SCollection[T], T]

    Permalink

    Assert that the SCollection in question contains the provided element without making assumptions about other elements in the collection.

    Assert that the SCollection in question contains the provided element without making assumptions about other elements in the collection.

    Definition Classes
    SCollectionMatchers
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equalMapOf[K, V](value: Map[K, V])(implicit arg0: ClassTag[K], arg1: ClassTag[V]): SingleMatcher[SCollection[(K, V)], Map[K, V]]

    Permalink

    Assert that the SCollection in question is equivalent to the provided map.

    Assert that the SCollection in question is equivalent to the provided map.

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def exist[T](predicate: (T) ⇒ Boolean)(implicit arg0: ClassTag[T]): IterableMatcher[SCollection[T], T]

    Permalink

    Assert that some elements of the SCollection in question satisfy the provided function.

    Assert that some elements of the SCollection in question satisfy the provided function.

    Definition Classes
    SCollectionMatchers
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def forAll[T](predicate: (T) ⇒ Boolean)(implicit arg0: ClassTag[T]): IterableMatcher[SCollection[T], T]

    Permalink

    Assert that all elements of the SCollection in question satisfy the provided function.

    Assert that all elements of the SCollection in question satisfy the provided function.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def haveSize(size: Int): IterableMatcher[SCollection[_], Any]

    Permalink

    Assert that the SCollection in question has provided size.

    Assert that the SCollection in question has provided size.

    Definition Classes
    SCollectionMatchers
  24. def inCombinedNonLatePanes[T, B](window: BoundedWindow)(matcher: IterableMatcher[T, B])(implicit arg0: ClassTag[T], arg1: ClassTag[B]): Matcher[T]

    Permalink

    SCollection assertion only applied to the specified window across all panes that were not produced by the arrival of late data.

    SCollection assertion only applied to the specified window across all panes that were not produced by the arrival of late data.

    Definition Classes
    SCollectionMatchers
  25. def inEarlyGlobalWindowPanes[T, B](matcher: IterableMatcher[T, B])(implicit arg0: ClassTag[T], arg1: ClassTag[B]): Matcher[T]

    Permalink

    SCollection assertion only applied to early timing global window.

    SCollection assertion only applied to early timing global window.

    Definition Classes
    SCollectionMatchers
  26. def inFinalPane[T, B](window: BoundedWindow)(matcher: MatcherBuilder[T])(implicit arg0: ClassTag[T], arg1: ClassTag[B]): Matcher[T]

    Permalink

    SCollection assertion only applied to the specified window, running the checker only on the final pane for each key.

    SCollection assertion only applied to the specified window, running the checker only on the final pane for each key.

    Definition Classes
    SCollectionMatchers
  27. def inOnTimePane[T](window: BoundedWindow)(matcher: MatcherBuilder[T])(implicit arg0: ClassTag[T]): Matcher[T]

    Permalink

    SCollection assertion only applied to the specified window, running the checker only on the on-time pane for each key.

    SCollection assertion only applied to the specified window, running the checker only on the on-time pane for each key.

    Definition Classes
    SCollectionMatchers
  28. def inOnlyPane[T, B](window: BoundedWindow)(matcher: SingleMatcher[T, B])(implicit arg0: ClassTag[T], arg1: ClassTag[B]): Matcher[T]

    Permalink

    SCollection assertion only applied to the specified window.

    SCollection assertion only applied to the specified window. The assertion expect outputs to be produced to the provided window exactly once.

    Definition Classes
    SCollectionMatchers
  29. def inWindow[T, B](window: BoundedWindow)(matcher: IterableMatcher[T, B])(implicit arg0: ClassTag[T], arg1: ClassTag[B]): Matcher[T]

    Permalink

    SCollection assertion only applied to the specified window.

    SCollection assertion only applied to the specified window.

    Definition Classes
    SCollectionMatchers
  30. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  34. def satisfy[T](predicate: (Iterable[T]) ⇒ Boolean)(implicit arg0: ClassTag[T]): IterableMatcher[SCollection[T], T]

    Permalink

    Assert that the SCollection in question satisfies the provided function.

    Assert that the SCollection in question satisfies the provided function.

    Definition Classes
    SCollectionMatchers
  35. implicit def stringBTSerializer(s: String): ByteString

    Permalink

    Provide an implicit BT serializer for common cell value type String.

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

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

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

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

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

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

Inherited from SCollectionMatchers

Inherited from AnyRef

Inherited from Any

Ungrouped