Class/Object

com.twitter.scalding

JobTest

Related Docs: object JobTest | package scalding

Permalink

class JobTest extends AnyRef

This class is used to construct unit tests for scalding jobs. You should not use it unless you are writing tests. For examples of how to do that, see the tests included in the main scalding repository: https://github.com/twitter/scalding/tree/master/scalding-core/src/test/scala/com/twitter/scalding

Source
JobTest.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JobTest
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JobTest(cons: (Args) ⇒ Job)

    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. def arg(inArg: String, value: String): JobTest

    Permalink
  5. def arg(inArg: String, value: List[String]): JobTest

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def counter(counter: String, group: String = Stats.ScaldingGroup)(op: (Long) ⇒ Unit): JobTest

    Permalink
  9. def counters(op: (Map[String, Long]) ⇒ Unit): JobTest

    Permalink
  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. def finish(): Unit

    Permalink
  14. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def ifSource[T](fn: PartialFunction[Source, Iterable[T]])(implicit setter: TupleSetter[T]): JobTest

    Permalink

    Enables syntax like: .ifSource { case Tsv("in") => List(1, 2, 3) } We need a different function name from source to help the compiler

  17. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def registerFile(filename: String): JobTest

    Permalink
  22. def run: JobTest

    Permalink
  23. def runHadoop: JobTest

    Permalink
  24. def runHadoopWithConf(conf: JobConf): JobTest

    Permalink
  25. def runWithoutNext(useHadoop: Boolean = false): JobTest

    Permalink
  26. def sink[A](s: Source)(op: (Buffer[A]) ⇒ Unit)(implicit conv: TupleConverter[A]): JobTest

    Permalink
    Annotations
    @SuppressWarnings()
  27. def source[T](s: Source, iTuple: Iterable[T])(implicit setter: TupleSetter[T]): JobTest

    Permalink
  28. def source[T](fn: (Source) ⇒ Option[Iterable[T]])(implicit setter: TupleSetter[T]): JobTest

    Permalink

    Add a function to produce a mock when a certain source is requested

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. def typedSink[A](s: Source with TypedSink[A])(op: (Buffer[A]) ⇒ Unit)(implicit conv: TupleConverter[A]): JobTest

    Permalink
  32. def validate(v: Boolean): JobTest

    Permalink
  33. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped