geotrellis.logic

ForEach3

case class ForEach3[A, B, C, Z](opA: Op[Array[A]], opB: Op[Array[B]], opC: Op[Array[C]])(f: (A, B, C) ⇒ Op[Z])(implicit evidence$6: Manifest[Z]) extends Op[Array[Z]] with Product with Serializable

Evaluates the given operations (opA opB, and opC) to get arrays of A's, B's and C's (which should be the same length).

Then, applies the given function (f) to each (A, B, C) triple in (grouped by array index) to get a Z value. The resulting array of Z's is returned.

Linear Supertypes
Operation[Array[Z]], Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ForEach3
  2. Operation
  3. Serializable
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ForEach3(opA: Op[Array[A]], opB: Op[Array[B]], opC: Op[Array[C]])(f: (A, B, C) ⇒ Op[Z])(implicit arg0: Manifest[Z])

Type Members

  1. type Args = List[Any]

    Definition Classes
    Operation
  2. type Steps = PartialFunction[Any, StepOutput[Array[Z]]]

    Definition Classes
    Operation

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def _run(): StepOutput[Array[Z]]

    Definition Classes
    ForEach3Operation
  7. def andThen[U](f: (Array[Z]) ⇒ Op[U]): Operation[U]

    Definition Classes
    Operation
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val debug: Boolean

    Definition Classes
    Operation
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def filter(f: (Array[Z]) ⇒ Boolean): Operation[Array[Z]]

    Definition Classes
    Operation
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def flatMap[U](f: (Array[Z]) ⇒ Operation[U]): Operation[U]

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Definition Classes
    Operation
  15. def flatten[B](implicit f: (Array[Z]) ⇒ Op[B]): Operation[B]

    Definition Classes
    Operation
  16. def foreach[U](f: (Array[Z]) ⇒ U): Unit

    Create an operation that applies the function f to the result of this operation, but returns nothing.

    Create an operation that applies the function f to the result of this operation, but returns nothing.

    Definition Classes
    Operation
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def into[U](f: (Operation[Array[Z]]) ⇒ U): U

    Call the given function with this operation as its argument.

    Call the given function with this operation as its argument.

    This is primarily useful for code readability.

    Definition Classes
    Operation
    See also

    http://debasishg.blogspot.com/2009/09/thrush-combinator-in-scala.html

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def map[U](f: (Array[Z]) ⇒ U): Operation[U]

    Create a new operation that returns the result of the provided function that takes this operation's result as its argument.

    Create a new operation that returns the result of the provided function that takes this operation's result as its argument.

    Definition Classes
    Operation
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. val nextSteps: PartialFunction[Any, StepOutput[Array[Z]]]

    Definition Classes
    ForEach3Operation
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. val opA: Op[Array[A]]

  26. val opB: Op[Array[B]]

  27. val opC: Op[Array[C]]

  28. def opId: String

    Definition Classes
    Operation
  29. def prettyString: String

    Definition Classes
    Operation
  30. def processNextSteps(args: Args): StepOutput[Array[Z]]

    Definition Classes
    Operation
  31. def run(): StepOutput[Array[Z]]

    Execute this operation and return the result.

    Execute this operation and return the result.

    Definition Classes
    Operation
  32. def runAsync(args: Args): StepOutput[Array[Z]]

    Definition Classes
    Operation
  33. def step2(as: Array[A], bs: Array[B], cs: Array[C]): StepOutput[Array[Z]]

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

    Definition Classes
    AnyRef
  35. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def withFilter(f: (Array[Z]) ⇒ Boolean): Operation[Array[Z]]

    Definition Classes
    Operation
  39. def withName(n: String): Operation[Array[Z]]

    Definition Classes
    Operation
  40. def withResult[U](f: (Array[Z]) ⇒ Operation[U]): Operation[U]

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Same as flatMap.

    Definition Classes
    Operation

Inherited from Operation[Array[Z]]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped