Class

com.eharmony.aloha.factory.avro

UrlConfig

Related Doc: package avro

Permalink

case class UrlConfig(vfs: Vfs, modelCodomainRefInfoStr: String, imports: Seq[String] = Nil, classCacheDir: Option[File] = None, dereferenceAsOptional: Boolean = true) extends FactoryConfig with Product with Serializable

Provides an easy interface for creating ModelFactory instances that both take and return Avro objects.

This is especially useful for creating factories in generic services because the modelCodomainRefInfoStr is a string rather than RefInfo so it can come from a property file.

vfs

A com.eharmony.aloha.io.vfs.Vfs wrapper around a URL pointing to a JSON Avro Schema that represents the data passed to models created by this factory.

modelCodomainRefInfoStr

A string representation of a com.eharmony.aloha.reflect.RefInfo.

imports

imports to be injected into feature functions synthesized by the factory.

classCacheDir

a cache directory on the local machine used to cache class files of the created feature functions used in the models produced by the factory.

dereferenceAsOptional

whether to treat the dereferencing of repeated variables as an optional type. This avoids index out of bounds exceptions and is safer but slightly slower.

Linear Supertypes
Serializable, Serializable, Product, Equals, FactoryConfig, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UrlConfig
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. FactoryConfig
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UrlConfig(vfs: Vfs, modelCodomainRefInfoStr: String, imports: Seq[String] = Nil, classCacheDir: Option[File] = None, dereferenceAsOptional: Boolean = true)

    Permalink

    vfs

    A com.eharmony.aloha.io.vfs.Vfs wrapper around a URL pointing to a JSON Avro Schema that represents the data passed to models created by this factory.

    modelCodomainRefInfoStr

    A string representation of a com.eharmony.aloha.reflect.RefInfo.

    imports

    imports to be injected into feature functions synthesized by the factory.

    classCacheDir

    a cache directory on the local machine used to cache class files of the created feature functions used in the models produced by the factory.

    dereferenceAsOptional

    whether to treat the dereferencing of repeated variables as an optional type. This avoids index out of bounds exceptions and is safer but slightly slower.

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 apply(): Try[ModelFactory[GenericRecord, Score]]

    Permalink

    returns

    A Try of a ModelFactory that creates models taking GenericRecord instances as input and returns com.eharmony.aloha.audit.impl.avro.Score as output.

    Definition Classes
    UrlConfigFactoryConfig
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def auditor[A](refInfo: RefInfo[A]): Try[AvroScoreAuditor[A]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    FactoryConfig
  7. val classCacheDir: Option[File]

    Permalink

    a cache directory on the local machine used to cache class files of the created feature functions used in the models produced by the factory.

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val dereferenceAsOptional: Boolean

    Permalink

    whether to treat the dereferencing of repeated variables as an optional type.

    whether to treat the dereferencing of repeated variables as an optional type. This avoids index out of bounds exceptions and is safer but slightly slower.

  10. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. val imports: Seq[String]

    Permalink

    imports to be injected into feature functions synthesized by the factory.

  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. val modelCodomainRefInfoStr: String

    Permalink

    A string representation of a com.eharmony.aloha.reflect.RefInfo.

  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def refInfo(refInfoStr: String): Try[RefInfo[Any]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    FactoryConfig
  20. def semantics(s: Schema, imports: Seq[String], classCacheDir: Option[File], dereferenceAsOptional: Boolean): CompiledSemantics[GenericRecord]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    FactoryConfig
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. val vfs: Vfs

    Permalink

    A com.eharmony.aloha.io.vfs.Vfs wrapper around a URL pointing to a JSON Avro Schema that represents the data passed to models created by this factory.

  23. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. 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 FactoryConfig

Inherited from AnyRef

Inherited from Any

Ungrouped