Class

com.eharmony.aloha.semantics.func

EnrichedErrorGenAggFunc

Related Doc: package func

Permalink

case class EnrichedErrorGenAggFunc[-A, +B](unsafe: GenAggFunc[A, B]) extends GenAggFunc[A, B] with Product with Serializable

A wrapper around an unsafe GenAggFunc that will catch exceptions and rethrow com.eharmony.aloha.semantics.SemanticsUdfException with the appropriate information filled in.

A

input type of the function

B

output type of the function

unsafe

an unsafe GenAggFunc that can throw exceptions.

Linear Supertypes
Serializable, Serializable, Product, Equals, GenAggFunc[A, B], (A) ⇒ B, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EnrichedErrorGenAggFunc
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. GenAggFunc
  7. Function1
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EnrichedErrorGenAggFunc(unsafe: GenAggFunc[A, B])

    Permalink

    unsafe

    an unsafe GenAggFunc that can throw exceptions.

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 accessorOutput(a: A): Map[String, Try[Any]]

    Permalink

    Produce a list of results by applying each accessor on the input.

    Produce a list of results by applying each accessor on the input.

    a

    the input

    returns

    a map from each accessor's descriptor to the value produced by the accessor.

    Definition Classes
    GenAggFunc
  5. def accessorOutputMissing(a: A): List[String]

    Permalink

    Produce a list of accessor descriptors where the accessor results in missing data.

    Produce a list of accessor descriptors where the accessor results in missing data. This is determined applying accessorOutput and collecting keys whose values are None or Left(_).

    a

    input on which we are trying to report accessors with missing outputs.

    Definition Classes
    GenAggFunc
  6. def accessorOutputProblems(a: A): GenAggFuncAccessorProblems

    Permalink
    Definition Classes
    GenAggFunc
  7. def accessorOutputWithError(a: A): List[String]

    Permalink
    Definition Classes
    GenAggFunc
  8. def accessors: List[GeneratedAccessor[A, _]]

    Permalink

    Get the accessors contained in the Function.

    Get the accessors contained in the Function.

    Definition Classes
    EnrichedErrorGenAggFuncGenAggFunc
  9. final def accessorsInErr(ao: Map[String, Try[Any]]): List[String]

    Permalink

    Accessor names for accessors with errors.

    Accessor names for accessors with errors.

    ao

    output of accessorOutput applied to an input.

    Attributes
    protected[this]
    Definition Classes
    GenAggFunc
  10. final def accessorsWithMissing(ao: Map[String, Try[Any]]): List[String]

    Permalink

    Produce a list of accessor descriptors where the accessor results in missing data.

    Produce a list of accessor descriptors where the accessor results in missing data. This is determined applying accessorOutput and collecting keys whose values are None or Left(_).

    ao

    input on which we are trying to report accessors with missing outputs.

    Attributes
    protected[this]
    Definition Classes
    GenAggFunc
  11. def andThen[A](g: (B) ⇒ A): (A) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  12. def andThenGenAggFunc[C](g: (B) ⇒ C): EnrichedErrorGenAggFunc[A, C]

    Permalink

    Like Function1.andThen except it returns a GenAggFunc.

    Like Function1.andThen except it returns a GenAggFunc. This calls the unsafe GenAggFunc's andThenGenAggFunc function and then wraps the result in a RethrowingGenAggFunc.

    C

    output type of the resulting function.

    g

    a function to execute after this

    Definition Classes
    EnrichedErrorGenAggFuncGenAggFunc
  13. def apply(a: A): B

    Permalink

    Apply the unsafe GenAggFunc.

    Apply the unsafe GenAggFunc. If it results in a SemanticsUdfException, rethrow. If it results in any other type of Exception, gather data and create a SemanticsUdfException and throw it.

    a

    function input

    Definition Classes
    EnrichedErrorGenAggFunc → Function1
    Annotations
    @throws( ... ) @inline()
  14. def arity: Int

    Permalink

    A convenience method providing the arity of the function.

    A convenience method providing the arity of the function. This is just:

    def arity = accessors.size
    Definition Classes
    GenAggFunc
  15. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def compose[A](g: (A) ⇒ A): (A) ⇒ B

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  25. val specification: String

    Permalink

    The specification of the function.

    The specification of the function.

    Definition Classes
    EnrichedErrorGenAggFuncGenAggFunc
  26. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    GenAggFunc → Function1 → AnyRef → Any
  28. val unsafe: GenAggFunc[A, B]

    Permalink

    an unsafe GenAggFunc that can throw exceptions.

  29. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from GenAggFunc[A, B]

Inherited from (A) ⇒ B

Inherited from AnyRef

Inherited from Any

Ungrouped