Package

com.eharmony.aloha.factory

avro

Permalink

package avro

Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class FactoryConfig extends AnyRef

    Permalink

    A configuration object for Avro model factories.

  2. case class SchemaConfig(schema: Schema, modelCodomainRefInfoStr: String, imports: Seq[String] = Nil, classCacheDir: Option[File] = None, dereferenceAsOptional: Boolean = true) extends FactoryConfig with Product with Serializable

    Permalink

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

    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.

    schema

    an 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.

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

    Permalink

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

    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.

Value Members

  1. object FactoryConfig

    Permalink
  2. object StdAvroModelFactory

    Permalink

    Created by deak on 3/2/17.

Ungrouped