Issue a debug logging message, with an exception.
Issue a debug logging message, with an exception.
the message object. toString()
is called to convert it
to a loggable string.
the exception to include with the logged message.
Issue a debug logging message.
Issue a debug logging message.
the message object. toString()
is called to convert it
to a loggable string.
Issue a error logging message, with an exception.
Issue a error logging message, with an exception.
the message object. toString()
is called to convert it
to a loggable string.
the exception to include with the logged message.
Issue a error logging message.
Issue a error logging message.
the message object. toString()
is called to convert it
to a loggable string.
Read from a classpath resource.
Read from a classpath resource. This uses fromVfs2 under the hood.
a classpath resource path.
Read from a file.
Read from a file. Logs the file.
a file to read. The file's InputStream is automatically closed.
the result
Read from an InputStream.
Read from an InputStream.
an InputStream to read. The InputStream is automatically closed.
the result
Parse a bunch of readable sources given a Functor (see Functors, Monads, Applicatives – can be so simple).
Parse a bunch of readable sources given a Functor (see Functors, Monads, Applicatives – can be so simple).
the functor type
a container of instances to convert into type the output type
a function instance
a container F of the output type B
Parse a bunch of readable sources from a java collection and return the results.
Parse a bunch of readable sources from a java collection and return the results.
a collection of sources from which
Parse a list of readable sources and return the results.
Parse a list of readable sources and return the results.
a list of readable sources containing the necessary information to parse the resource and produce the proper outputs.
a list of objects produced by parsing the resources in the readable types.
Read from a Reader.
Read from a Reader. Whoever extends this trait is responsible for closing the Reader.
a Reader containing data to be read.
the result
Read from a resource.
Read from a resource. This uses fromVfs2 under the hood.
a resource path.
Produce multiple outputs from multiple inputs and sequence the data so that we commute that container types.
Produce multiple outputs from multiple inputs and sequence the data so that we commute that container types. For an example, see that trait documentation.
the Traverse container type
A container of readable sources to convert to outputs.
a Traverse type class instance
an applicative function type class instance
The recommended API method from Java.
The recommended API method from Java. It's also equally valid to use any of the other methods provided by com.eharmony.aloha.io.AlohaReadable trait. It throws away the kind information (encoded in the type parameter M) that is retained the in Scala environment.
String representation of the model.
scala.util.Try of a com.eharmony.aloha.models.Model[A, B].
Read from a URL.
Read from a URL. Logs the URL.
a URL to read. The URL's InputStream is automatically closed.
the result
Read from an Apache VFS v1 FileObject.
Read from an Apache VFS v1 FileObject. Logs the file object location.
an Apache VFS v1 FileObject to read. The FileObject's InputStream is automatically closed.
the result
Read from an Apache VFS v1 FileObject.
Read from an Apache VFS v1 FileObject. Logs the file object location.
an Apache VFS v1 FileObject to read. The FileObject's InputStream is automatically closed.
the result
Issue a info logging message, with an exception.
Issue a info logging message, with an exception.
the message object. toString()
is called to convert it
to a loggable string.
the exception to include with the logged message.
Issue a info logging message.
Issue a info logging message.
the message object. toString()
is called to convert it
to a loggable string.
The character set that is used to decode the input streams in fromInputStream in the derived classes.
The character set that is used to decode the input streams in fromInputStream in the derived classes.
Determine whether debug logging is enabled.
Determine whether debug logging is enabled.
Determine whether error logging is enabled.
Determine whether error logging is enabled.
Determine whether info logging is enabled.
Determine whether info logging is enabled.
Determine whether trace logging is enabled.
Determine whether trace logging is enabled.
Determine whether warn logging is enabled.
Determine whether warn logging is enabled.
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.
The name with which the logger is initialized.
The name with which the logger is initialized. This can be overridden in a derived class.
Get the name associated with this logger.
Get the name associated with this logger.
the name.
A function that maps from the Readable type to the output type.
A function that maps from the Readable type to the output type.
a function.
Issue a trace logging message, with an exception.
Issue a trace logging message, with an exception.
the message object. toString()
is called to convert it
to a loggable string.
the exception to include with the logged message.
Issue a trace logging message.
Issue a trace logging message.
the message object. toString()
is called to convert it
to a loggable string.
Issue a warn logging message, with an exception.
Issue a warn logging message, with an exception.
the message object. toString()
is called to convert it
to a loggable string.
the exception to include with the logged message.
Issue a warn logging message.
Issue a warn logging message.
the message object. toString()
is called to convert it
to a loggable string.
A
ModelFactory
is responsible for creating models from model specifications.NOTE:
ModelFactory
has been completely rewritten. There's no longer a notion of an untyped model factory.From Scala, it is recommended to use code (like the code above), as type information is retained.
From Java, the easiest method of instantiation is to use Spring to instantiate the factory.