Class/Object

com.eharmony.aloha.dataset

RowCreatorBuilder

Related Docs: object RowCreatorBuilder | package dataset

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

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

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

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

    Permalink

    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
  7. final def debug(msg: ⇒ Any): Unit

    Permalink

    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
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink

    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
  10. final def error(msg: ⇒ Any): Unit

    Permalink

    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
  11. def finalize(): Unit

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

    Permalink

    Read from a classpath resource.

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

    r

    a classpath resource path.

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

    Permalink

    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
  14. def fromInputStream(is: InputStream): Try[Impl]

    Permalink

    Read from an InputStream.

    Read from an InputStream.

    is

    an InputStream to read. The InputStream is automatically closed.

    returns

    the result

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

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

    Permalink

    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
  17. def fromResource(r: String): Try[Impl]

    Permalink

    Read from a resource.

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

    r

    a resource path.

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

    Permalink

    Read from a String.

    Read from a String.

    s

    a String to read.

    returns

    the result

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

    Permalink

    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
  20. def fromVfs1(foVfs1: FileObject): Try[Impl]

    Permalink

    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
  21. def fromVfs2(foVfs2: FileObject): Try[Impl]

    Permalink

    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
  22. final def getClass(): Class[_]

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

    Permalink

    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
  24. final def info(msg: ⇒ Any): Unit

    Permalink

    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
  25. final def isDebugEnabled: Boolean

    Permalink

    Determine whether debug logging is enabled.

    Determine whether debug logging is enabled.

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

    Permalink

    Determine whether error logging is enabled.

    Determine whether error logging is enabled.

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

    Permalink

    Determine whether info logging is enabled.

    Determine whether info logging is enabled.

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

    Permalink
    Definition Classes
    Any
  29. final def isTraceEnabled: Boolean

    Permalink

    Determine whether trace logging is enabled.

    Determine whether trace logging is enabled.

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

    Permalink

    Determine whether warn logging is enabled.

    Determine whether warn logging is enabled.

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

    Permalink

    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
  32. def loggerInitName(): String

    Permalink

    The name with which the logger is initialized.

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

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

    Permalink

    Get the name associated with this logger.

    Get the name associated with this logger.

    returns

    the name.

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

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

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

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

    Permalink

    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.

  38. val semantics: CompiledSemantics[A]

    Permalink

    a Semantics to be used for creating the RowCreator.

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

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

    Permalink

    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
  41. final def trace(msg: ⇒ Any): Unit

    Permalink

    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
  42. final def wait(): Unit

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

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

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

    Permalink

    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
  46. final def warn(msg: ⇒ Any): Unit

    Permalink

    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