com.eharmony.aloha.dataset

RowCreatorBuilder

final case class RowCreatorBuilder[A, B, Impl <: RowCreator[A, B]](semantics: CompiledSemantics[A], producers: List[RowCreatorProducer[A, B, Impl]]) extends AlohaReadable[Try[Impl]] with Logging with Product with Serializable

Given a semantics, json specification and an ordered sequence of RowCreatorProducers, find the first producer that applies to creating a Spec from the json specification and use it to instantiate the RowCreator object.

A

the type consumed by the RowCreator produced by this Readable.

B

the type produced by the RowCreator produced by this Readable.

Impl

the implementation of RowCreator.

semantics

a Semantics to be used for creating the RowCreator.

producers

an ordered sequence of RowCreatorProducers. These producers form the basis of a chain of responsibility pattern. Therefore, the order is important.

Linear Supertypes
Serializable, Serializable, Product, Equals, Logging, AlohaReadable[Try[Impl]], NonFileReadable[Try[Impl]], FileReadable[Try[Impl]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RowCreatorBuilder
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Logging
  7. AlohaReadable
  8. NonFileReadable
  9. FileReadable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RowCreatorBuilder(semantics: CompiledSemantics[A], producers: List[RowCreatorProducer[A, B, Impl]])

    semantics

    a Semantics to be used for creating the RowCreator.

    producers

    an ordered sequence of RowCreatorProducers. These producers form the basis of a chain of responsibility pattern. Therefore, the order is important.

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def debug(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Issue a debug logging message, with an exception.

    Issue a debug logging message, with an exception.

    msg

    the message object. toString() is called to convert it to a loggable string.

    t

    the exception to include with the logged message.

    Attributes
    protected[this]
    Definition Classes
    Logging
  9. final def debug(msg: ⇒ Any): Unit

    Issue a debug logging message.

    Issue a debug logging message.

    msg

    the message object. toString() is called to convert it to a loggable string.

    Attributes
    protected[this]
    Definition Classes
    Logging
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. final def error(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Issue a error logging message, with an exception.

    Issue a error logging message, with an exception.

    msg

    the message object. toString() is called to convert it to a loggable string.

    t

    the exception to include with the logged message.

    Attributes
    protected[this]
    Definition Classes
    Logging
  12. final def error(msg: ⇒ Any): Unit

    Issue a error logging message.

    Issue a error logging message.

    msg

    the message object. toString() is called to convert it to a loggable string.

    Attributes
    protected[this]
    Definition Classes
    Logging
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def fromClasspathResource(r: String): Try[Impl]

    Read from a classpath resource.

    Read from a classpath resource. This uses fromVfs2 under the hood.

    r

    a classpath resource path.

    returns

    Definition Classes
    RowCreatorBuilderFileReadable
  15. def fromFile(f: File): Try[Impl]

    Read from a File.

    Read from a File.

    f

    a File to read. The File's InputStream is automatically closed.

    returns

    the result

    Definition Classes
    RowCreatorBuilderFileReadable
  16. def fromInputStream(is: InputStream): Try[Impl]

    Read from an InputStream.

    Read from an InputStream.

    is

    an InputStream to read. The InputStream is automatically closed.

    returns

    the result

    Definition Classes
    RowCreatorBuilderNonFileReadable
  17. def fromJson(json: JsValue): Try[Impl]

  18. def fromReader(r: Reader): Try[Impl]

    Read from an Reader.

    Read from an Reader.

    r

    a Reader from which to read. The Reader is automatically closed.

    returns

    the result

    Definition Classes
    RowCreatorBuilderNonFileReadable
  19. def fromResource(r: String): Try[Impl]

    Read from a resource.

    Read from a resource. This uses fromVfs2 under the hood.

    r

    a resource path.

    returns

    Definition Classes
    RowCreatorBuilderFileReadable
  20. def fromString(s: String): Try[Impl]

    Read from a String.

    Read from a String.

    s

    a String to read.

    returns

    the result

    Definition Classes
    RowCreatorBuilderNonFileReadable
  21. def fromUrl(u: URL): Try[Impl]

    Read from a URL.

    Read from a URL.

    u

    a URL to read. The URL's InputStream is automatically closed.

    returns

    the result

    Definition Classes
    RowCreatorBuilderFileReadable
  22. def fromVfs1(foVfs1: FileObject): Try[Impl]

    Read from an Apache FileObject.

    Read from an Apache FileObject.

    foVfs1

    an Apache v1 VFS FileObject to read. The FileObject's InputStream is automatically closed.

    returns

    the result

    Definition Classes
    RowCreatorBuilderFileReadable
  23. def fromVfs2(foVfs2: FileObject): Try[Impl]

    Read from an Apache FileObject.

    Read from an Apache FileObject.

    foVfs2

    an Apache VFS v2 FileObject to read. The FileObject's InputStream is automatically closed.

    returns

    the result

    Definition Classes
    RowCreatorBuilderFileReadable
  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. final def info(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Issue a info logging message, with an exception.

    Issue a info logging message, with an exception.

    msg

    the message object. toString() is called to convert it to a loggable string.

    t

    the exception to include with the logged message.

    Attributes
    protected[this]
    Definition Classes
    Logging
  26. final def info(msg: ⇒ Any): Unit

    Issue a info logging message.

    Issue a info logging message.

    msg

    the message object. toString() is called to convert it to a loggable string.

    Attributes
    protected[this]
    Definition Classes
    Logging
  27. final def isDebugEnabled: Boolean

    Determine whether debug logging is enabled.

    Determine whether debug logging is enabled.

    Attributes
    protected[this]
    Definition Classes
    Logging
  28. final def isErrorEnabled: Boolean

    Determine whether error logging is enabled.

    Determine whether error logging is enabled.

    Attributes
    protected[this]
    Definition Classes
    Logging
  29. final def isInfoEnabled: Boolean

    Determine whether info logging is enabled.

    Determine whether info logging is enabled.

    Attributes
    protected[this]
    Definition Classes
    Logging
  30. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  31. final def isTraceEnabled: Boolean

    Determine whether trace logging is enabled.

    Determine whether trace logging is enabled.

    Attributes
    protected[this]
    Definition Classes
    Logging
  32. final def isWarnEnabled: Boolean

    Determine whether warn logging is enabled.

    Determine whether warn logging is enabled.

    Attributes
    protected[this]
    Definition Classes
    Logging
  33. final lazy val logger: Logger

    The logger is a @transient lazy val to enable proper working with Spark.

    The logger is a @transient lazy val to enable proper working with Spark. The logger will not be serialized with the rest of the class with which this trait is mixed-in.

    Attributes
    protected[this]
    Definition Classes
    Logging
  34. def loggerInitName(): String

    The name with which the logger is initialized.

    The name with which the logger is initialized. This can be overridden in a derived class.

    returns

    Attributes
    protected
    Definition Classes
    Logging
  35. final def loggerName: String

    Get the name associated with this logger.

    Get the name associated with this logger.

    returns

    the name.

    Attributes
    protected[this]
    Definition Classes
    Logging
  36. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  39. val producers: List[RowCreatorProducer[A, B, Impl]]

    an ordered sequence of RowCreatorProducers.

    an ordered sequence of RowCreatorProducers. These producers form the basis of a chain of responsibility pattern. Therefore, the order is important.

  40. val semantics: CompiledSemantics[A]

    a Semantics to be used for creating the RowCreator.

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

    Definition Classes
    AnyRef
  42. final def trace(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Issue a trace logging message, with an exception.

    Issue a trace logging message, with an exception.

    msg

    the message object. toString() is called to convert it to a loggable string.

    t

    the exception to include with the logged message.

    Attributes
    protected[this]
    Definition Classes
    Logging
  43. final def trace(msg: ⇒ Any): Unit

    Issue a trace logging message.

    Issue a trace logging message.

    msg

    the message object. toString() is called to convert it to a loggable string.

    Attributes
    protected[this]
    Definition Classes
    Logging
  44. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def warn(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Issue a warn logging message, with an exception.

    Issue a warn logging message, with an exception.

    msg

    the message object. toString() is called to convert it to a loggable string.

    t

    the exception to include with the logged message.

    Attributes
    protected[this]
    Definition Classes
    Logging
  48. final def warn(msg: ⇒ Any): Unit

    Issue a warn logging message.

    Issue a warn logging message.

    msg

    the message object. toString() is called to convert it to a loggable string.

    Attributes
    protected[this]
    Definition Classes
    Logging

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Logging

Inherited from AlohaReadable[Try[Impl]]

Inherited from NonFileReadable[Try[Impl]]

Inherited from FileReadable[Try[Impl]]

Inherited from AnyRef

Inherited from Any

Ungrouped