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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
counter(counter: Counter)(assertion: (Long) ⇒ Any): 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
counters(assertion: (Map[MetricName, Long]) ⇒ Any): Builder
Evaluate all Counters in the pipeline being tested.
Evaluate all Counters in the pipeline being tested.
- assertion
assertion on the collection of all job counters' committed values
-
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) ⇒ Any): 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
-
def
distributions(assertion: (Map[MetricName, DistributionResult]) ⇒ Any): Builder
Evaluate all Distributions in the pipeline being tested.
Evaluate all Distributions in the pipeline being tested.
- assertion
assertion on the collection of all job distribution results' committed values
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
gauge(gauge: Gauge)(assertion: (GaugeResult) ⇒ Any): 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
-
def
gauges(assertion: (Map[MetricName, GaugeResult]) ⇒ Any): Builder
Evaluate all Gauges in the pipeline being tested.
Evaluate all Gauges in the pipeline being tested.
- assertion
assertion on the collection of all job gauge results' committed values
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
input[T](io: ScioIO[T], value: Iterable[T])(implicit arg0: Coder[T]): Builder
Feed an input in the form of a raw
Iterable[T]to the pipeline being tested.Feed an input in the form of a raw
Iterable[T]to the pipeline being tested. Note thatTestIO[T]must match the one used inside the pipeline, e.g.AvroIO[MyRecord]("in.avro")withsc.avroFile[MyRecord]("in.avro"). -
def
inputStream[T](io: ScioIO[T], stream: TestStream[T])(implicit arg0: Coder[T]): Builder
Feed an input in the form of a
PTransform[PBegin, PCollection[T]]to the pipeline being tested.Feed an input in the form of a
PTransform[PBegin, PCollection[T]]to the pipeline being tested. Note thatPTransforminputs may not be supported for allTestIO[T]types. -
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() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
output[T](io: ScioIO[T])(assertion: (SCollection[T]) ⇒ Any): 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(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )