class Builder extends AnyRef
- Alphabetic
- By Inheritance
- Builder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Builder(state: BuilderState)
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
-
def
args(newArgs: String*): Builder
Feed command line arguments to the pipeline being tested.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
counter(counter: Counter)(assertion: (Long) ⇒ Unit): Builder
Evaluate a Counter in the pipeline being tested.
Evaluate a Counter in the pipeline being tested.
- counter
counter to be evaluated
- assertion
assertion for the counter result's committed value
-
def
distCache[T](key: DistCacheIO[T], value: T): Builder
Feed an distributed cache to the pipeline being tested.
Feed an distributed cache to the pipeline being tested. Note that
DistCacheIO[T]must match the one used inside the pipeline, e.g.DistCacheIO[Set[String]]("dc.txt")withsc.distCache("dc.txt")(f => scala.io.Source.fromFile(f).getLines().toSet).- value
mock value, must be serializable.
-
def
distCacheFunc[T](key: DistCacheIO[T], initFn: () ⇒ T): Builder
Feed an distributed cache to the pipeline being tested.
Feed an distributed cache to the pipeline being tested. Note that
DistCacheIO[T]must match the one used inside the pipeline, e.g.DistCacheIO[Set[String]]("dc.txt")withsc.distCache("dc.txt")(f => scala.io.Source.fromFile(f).getLines().toSet).- initFn
init function, must be serializable.
-
def
distribution(distribution: Distribution)(assertion: (DistributionResult) ⇒ Unit): Builder
Evaluate a Distribution in the pipeline being tested.
Evaluate a Distribution in the pipeline being tested.
- distribution
distribution to be evaluated
- assertion
assertion for the distribution result's committed value
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
gauge(gauge: Gauge)(assertion: (GaugeResult) ⇒ Unit): Builder
Evaluate a Gauge in the pipeline being tested.
Evaluate a Gauge in the pipeline being tested.
- gauge
gauge to be evaluated
- assertion
assertion for the gauge result's committed value
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
input[T](key: TestIO[T], value: Iterable[T]): Builder
Feed an input to the pipeline being tested.
Feed an input to the pipeline being tested. Note that
TestIO[T]must match the one used inside the pipeline, e.g.AvroIO[MyRecord]("in.avro")withsc.avroFile[MyRecord]("in.avro"). -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
output[T](key: TestIO[T])(assertion: (SCollection[T]) ⇒ Unit): Builder
Evaluate an output of the pipeline being tested.
Evaluate an output of the pipeline being tested. Note that
TestIO[T]must match the one used inside the pipeline, e.g.AvroIO[MyRecord]("out.avro")withdata.saveAsAvroFile("out.avro")wheredatais of typeSCollection[MyRecord].- assertion
assertion for output data. See SCollectionMatchers for available matchers on an SCollection.
-
def
run(): Unit
Run the pipeline with test wiring.
-
def
setUp(): Unit
Set up test wiring.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tearDown(): Unit
Tear down test wiring.
-
val
testId: String
Test ID for input and output wiring.
-
def
toString(): String
- Definition Classes
- Builder → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )