com.eharmony.aloha.semantics.func

EnrichedErrorGenAggFunc

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

    unsafe

    an unsafe GenAggFunc that can throw exceptions.

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

    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
  7. def accessorOutputMissing(a: A): List[String]

    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.

    returns

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

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

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

    Get the accessors contained in the Function.

    Get the accessors contained in the Function.

    returns

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

    Accessor names for accessors with errors.

    Accessor names for accessors with errors.

    ao

    output of accessorOutput applied to an input.

    returns

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

    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.

    returns

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

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

    Like Function1.

    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

    returns

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

    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

    returns

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

    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
    returns

    Definition Classes
    GenAggFunc
  17. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  18. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef
  21. def finalize(): Unit

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

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

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

    Definition Classes
    AnyRef
  25. final def notify(): Unit

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

    Definition Classes
    AnyRef
  27. val specification: String

    The specification of the function.

    The specification of the function.

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

    Definition Classes
    AnyRef
  29. def toString(): String

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

    an unsafe GenAggFunc that can throw exceptions.

  31. final def wait(): Unit

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

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

    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