Package

ml.combust.bundle

serializer

Permalink

package serializer

Visibility
  1. Public
  2. All

Type Members

  1. case class BundleSerializer[Context](context: Context, file: BundleFile)(implicit hr: HasBundleRegistry) extends Closeable with Product with Serializable

    Permalink

    Class for serializing/deserializing Bundle.ML ml.combust.bundle.dsl.Bundle objects.

    Class for serializing/deserializing Bundle.ML ml.combust.bundle.dsl.Bundle objects.

    Context

    context type for implementation

    context

    context for implementation

    file

    bundle file for serialization

    hr

    bundle registry for custom types and ops

  2. sealed trait ConcreteSerializationFormat extends SerializationFormat with HasConcreteSerializationFormat

    Permalink

    Trait for defining the actual serialization format being used in a given context.

    Trait for defining the actual serialization format being used in a given context. This must be either JSON or Protobuf.

  3. case class FileUtil() extends Product with Serializable

    Permalink

    Created by hollinwilkins on 9/11/16.

  4. trait FormatModelSerializer extends AnyRef

    Permalink

    Trait for serializing a protobuf model definition.

  5. trait FormatNodeSerializer extends AnyRef

    Permalink

    Trait for serializing node definitions.

  6. case class GraphSerializer[Context](bundleContext: BundleContext[Context]) extends Product with Serializable

    Permalink

    Class for serializing a list of graph nodes.

    Class for serializing a list of graph nodes.

    Context

    context class for implementation

    bundleContext

    bundle context for encoding/decoding custom types, op nodes and op models

  7. trait HasConcreteSerializationFormat extends AnyRef

    Permalink

    Trait inherited when a class has access to a concrete serialization format.

  8. case class JsonFormatModelSerializer()(implicit hr: HasBundleRegistry) extends FormatModelSerializer with Product with Serializable

    Permalink

    Object for serializing/deserializing model definitions with JSON.

  9. case class ModelSerializer[Context](bundleContext: BundleContext[Context]) extends Product with Serializable

    Permalink

    Class for serializing Bundle.ML models.

    Class for serializing Bundle.ML models.

    Context

    context class for implementation

    bundleContext

    bundle context for path and bundle registry

  10. case class NodeSerializer[Context](bundleContext: BundleContext[Context]) extends Product with Serializable

    Permalink

    Class for serializing a Bundle.ML node.

    Class for serializing a Bundle.ML node.

    Context

    context class for implementation

    bundleContext

    bundle context for custom types and serialization formats

  11. case class ProtoFormatModelSerializer()(implicit hr: HasBundleRegistry) extends FormatModelSerializer with Product with Serializable

    Permalink

    Object for serializing/deserializing model definitions with Protobuf.

  12. case class SerializationContext(concrete: ConcreteSerializationFormat, bundleRegistry: BundleRegistry) extends HasConcreteSerializationFormat with HasBundleRegistry with Product with Serializable

    Permalink

    Class for holding concrete serialization format and bundle registry.

    Class for holding concrete serialization format and bundle registry.

    This class is used by methods that need to know the exact serialization format being used as well as a bundle registry for all model, nodes and custom type type classes.

    concrete

    a concrete serialization format (JSON or Protobuf)

    bundleRegistry

    registry of custom types and ops

  13. sealed trait SerializationFormat extends AnyRef

    Permalink

    Trait for defining which serialization format was used to write a Bundle.ML model.

    Trait for defining which serialization format was used to write a Bundle.ML model.

    Currently supported formats are:

    • mixed - use JSON for smaller attributes, models and nodes and protobuf for large attributes, models and nodes
    • json - used JSON for all attributes, models and nodes
    • protobuf - use protobuf for all attributes, models and nodes

Value Members

  1. object FormatModelSerializer

    Permalink

    Companion object for utility methods related to model definition serialization.

  2. object FormatNodeSerializer

    Permalink

    Companion class for utility serializer methods for node definitions.

  3. object JsonFormatNodeSerializer extends FormatNodeSerializer

    Permalink

    Object for serializing/deserializing node definitions with JSON.

  4. object ProtoFormatNodeSerializer extends FormatNodeSerializer

    Permalink

    Object for serializing/deserializing node definitions with Protobuf.

  5. object SerializationFormat

    Permalink

    Companion object for holding the three ml.combust.bundle.serializer.SerializationFormat objects as well as a helper method to convert to the protobuf serialization format enum.

  6. package attr

    Permalink

Ungrouped