Provides a standard way to create Avro ModelFactory instances for producing
models that take GenericRecord
s and return Score
s.
Provides a standard way to create Avro ModelFactory instances for producing
models that take GenericRecord
s and return Score
s.
a factory configuration.
a Try of a ModelFactory.
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.
an Apache VFS URL pointing to a JSON Avro Schema that represents the data passed to models created by this factory.
A string representation of a com.eharmony.aloha.reflect.RefInfo
.
imports to be injected into feature functions synthesized by the factory.
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.
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.
use Apache VFS2 to locate the domain schema (true) or use VFS1 (false.
A Try of a ModelFactory that creates models taking GenericRecord
instances as
input and returns com.eharmony.aloha.audit.impl.avro.Score
as output.
(Since version 4.0.1) Prefer StdAvroModelFactory.fromConfig(conf: FactoryConfig)
Created by deak on 3/2/17.