case class BundleContext[Context](context: Context, format: SerializationFormat, bundleRegistry: BundleRegistry, fs: FileSystem, path: Path) extends HasBundleRegistry with Product with Serializable
Class for holding serialization information for a ml.combust.bundle.dsl.Bundle.
This class holds all contextual information for serializing components into Bundle.ML.
- Context
extra contextual information specific to implementation
- format
desired serialization format (Json, Protobuf)
- bundleRegistry
bundle registry of all supported operations
- fs
file system for bundle
- path
path to the Bundle.ML model
- Alphabetic
- By Inheritance
- BundleContext
- Serializable
- Serializable
- Product
- Equals
- HasBundleRegistry
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
BundleContext(context: Context, format: SerializationFormat, bundleRegistry: BundleRegistry, fs: FileSystem, path: Path)
- format
desired serialization format (Json, Protobuf)
- bundleRegistry
bundle registry of all supported operations
- fs
file system for bundle
- path
path to the Bundle.ML model
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bundleContext(file: String): BundleContext[Context]
Create a new bundle context for a subfolder.
Create a new bundle context for a subfolder.
- file
name of subfolder
- returns
bundle context for the subfolder
-
val
bundleRegistry: BundleRegistry
Get the bundle registry.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val context: Context
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
file(name: String): Path
Get a file in the current bundle folder.
Get a file in the current bundle folder.
- name
name of the file
- returns
file in the bundle
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val format: SerializationFormat
- val fs: FileSystem
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val path: Path
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()