trait BigtableMatchers extends SCollectionMatchers
Trait with ScalaTest Matcher s for SCollection s specific to Bigtable output.
- Source
- BigtableMatchers.scala
- Alphabetic
- By Inheritance
- BigtableMatchers
- SCollectionMatchers
- EqInstances
- FallbackEqInstances
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type BTCollection = SCollection[BTRow]
- type BTRow = (ByteString, Iterable[Mutation])
- sealed trait IterableMatcher[T, B] extends MatcherBuilder[T] with Matcher[T]
- Definition Classes
- SCollectionMatchers
- sealed trait MatcherBuilder[T] extends AnyRef
- Definition Classes
- SCollectionMatchers
- sealed trait SingleMatcher[T, B] extends MatcherBuilder[T] with Matcher[T]
- Definition Classes
- SCollectionMatchers
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit def arrayEq[T](implicit eqT: Eq[T]): Eq[Array[T]]
- Definition Classes
- EqInstances
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val beEmpty: IterableMatcher[SCollection[_], Any]
Assert that the SCollection in question is empty.
Assert that the SCollection in question is empty.
- Definition Classes
- SCollectionMatchers
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def containCellMutationCase[V](key: ByteString, mutation: MutationCase): Matcher[BTCollection]
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.
- def containColumnFamilies(expectedCFs: String*): Matcher[BTCollection]
Check that the BT collection contains only the given column families, unique, in any order.
- def containInAnyOrder[T](value: Iterable[T])(implicit arg0: Coder[T], arg1: Eq[T]): IterableMatcher[SCollection[T], T]
Assert that the SCollection in question contains the provided elements.
Assert that the SCollection in question contains the provided elements.
- Definition Classes
- SCollectionMatchers
- def containRowKeys(expectedKeys: ByteString*): Matcher[BTCollection]
Check that the BT collection contains only the given keys, in any order.
- def containSetCellValue[V](key: ByteString, cf: String, cq: String, value: V)(implicit ser: (V) => ByteString): Matcher[BTCollection]
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
- def containSetCellValue[V](key: ByteString, cf: String, value: V)(implicit ser: (V) => ByteString): Matcher[BTCollection]
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.
- def containSingleValue[T](value: T)(implicit arg0: Coder[T], arg1: Eq[T]): SingleMatcher[SCollection[T], T]
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
- def containValue[T](value: T)(implicit arg0: Coder[T], arg1: Eq[T]): IterableMatcher[SCollection[T], T]
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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equalMapOf[K, V](value: Map[K, V])(implicit arg0: Coder[K], arg1: Coder[V]): SingleMatcher[SCollection[(K, V)], Map[K, V]]
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
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exist[T](predicate: (T) => Boolean)(implicit arg0: Coder[T], arg1: Eq[T]): IterableMatcher[SCollection[T], T]
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
- implicit def fallbackEq[A]: Eq[A]
- Definition Classes
- FallbackEqInstances
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def forAll[T](predicate: (T) => Boolean)(implicit arg0: Coder[T], arg1: Eq[T]): IterableMatcher[SCollection[T], T]
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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def haveSize(size: Int): IterableMatcher[SCollection[_], Any]
Assert that the SCollection in question has provided size.
Assert that the SCollection in question has provided size.
- Definition Classes
- SCollectionMatchers
- def inCombinedNonLatePanes[T, B](window: BoundedWindow)(matcher: IterableMatcher[T, B]): Matcher[T]
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
- def inEarlyGlobalWindowPanes[T, B](matcher: IterableMatcher[T, B]): Matcher[T]
SCollection assertion only applied to early timing global window.
SCollection assertion only applied to early timing global window.
- Definition Classes
- SCollectionMatchers
- def inEarlyPane[T](window: BoundedWindow)(matcher: MatcherBuilder[T]): Matcher[T]
SCollection assertion only applied to the specified window, running the checker only on the early pane for each key.
SCollection assertion only applied to the specified window, running the checker only on the early pane for each key.
- Definition Classes
- SCollectionMatchers
- def inFinalPane[T, B](window: BoundedWindow)(matcher: MatcherBuilder[T]): Matcher[T]
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
- def inLatePane[T, B](window: BoundedWindow)(matcher: MatcherBuilder[T]): Matcher[T]
SCollection assertion only applied to the specified window, running the checker only on the late pane for each key.
SCollection assertion only applied to the specified window, running the checker only on the late pane for each key.
- Definition Classes
- SCollectionMatchers
- def inOnTimePane[T](window: BoundedWindow)(matcher: MatcherBuilder[T]): Matcher[T]
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
- def inOnlyPane[T, B](window: BoundedWindow)(matcher: SingleMatcher[T, B]): Matcher[T]
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
- def inWindow[T, B](window: BoundedWindow)(matcher: IterableMatcher[T, B]): Matcher[T]
SCollection assertion only applied to the specified window.
SCollection assertion only applied to the specified window.
- Definition Classes
- SCollectionMatchers
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def satisfy[T](predicate: (Iterable[T]) => Boolean)(implicit arg0: Coder[T], arg1: Eq[T]): IterableMatcher[SCollection[T], T]
Assert that the SCollection in question satisfies the provided function.
Assert that the SCollection in question satisfies the provided function.
- Definition Classes
- SCollectionMatchers
- def satisfySingleValue[T](predicate: (T) => Boolean)(implicit arg0: Coder[T], arg1: Eq[T]): SingleMatcher[SCollection[T], T]
Assert that the SCollection in question contains a single element which satisfies the provided function.
Assert that the SCollection in question contains a single element which satisfies the provided function.
- Definition Classes
- SCollectionMatchers
- implicit def stringBTSerializer(s: String): ByteString
Provide an implicit BT serializer for common cell value type String.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()