Packages

  • package root
    Definition Classes
    root
  • package ai
    Definition Classes
    root
  • package eto
    Definition Classes
    ai
  • package rikai
    Definition Classes
    eto
  • package sql

    Rikai SQL-ML extension.

    Rikai SQL-ML extension.

    Rikai offers DDL to manipulate ML Models:

    CREATE MODEL model_name
    [ OPTIONS (key=value, key=value, ...) ]
    [ AS "model_registry_uri" ]
    
    # List all registered models.
    SHOW MODELS
    
    # Describe the details of a model.
    (DESC | DESCRIBE) MODEL model_name
    
    # Drop a Model
    DROP MODEL model_name

    A ML_PREDICT function is implemented to run model inference.

    SELECT id, ML_PREDICT(model_name, col1, col2, col3) as predicted FROM table
    Definition Classes
    rikai
  • package model
    Definition Classes
    sql
  • package fs

    FileSystem-based on Models.

    FileSystem-based on Models.

    It supports the following URIs.

    • ../relative/path/to/model
    • /absolute/path/to/model
    • file:///absolute/path/to/model
    • s3://bucket/path/to/model
    • gs://bucket/path/to/model
    • https://example.com/path/to/model
    Definition Classes
    model
  • package mlflow

    Mlflow-based Models.

    Mlflow-based Models.

    It supports the following URIs.

    • mlflow://<runid>
    • mlflow://<model> (latest version without a stage designation)
    • mlflow://<model>/<stage> (latest version for given stage)
    • mlflow://<model>/<version> (get the particular version of the registered model)
    Definition Classes
    model
  • package testing
    Definition Classes
    model
  • Catalog
  • Model
  • ModelAlreadyExistException
  • ModelNameException
  • ModelNotFoundException
  • ModelRegistryAlreadyExistException
  • ModelResolveException
  • Registry
  • SimpleCatalog
  • SparkUDFModel
c

ai.eto.rikai.sql.model

SparkUDFModel

class SparkUDFModel extends Model with SparkRunnable

A Model that can be turned into a Spark UDF.

Linear Supertypes
SparkRunnable, Model, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SparkUDFModel
  2. SparkRunnable
  3. Model
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SparkUDFModel(name: String, uri: String, funcName: String)

    name

    model name.

    uri

    the model uri.

    funcName

    the name of a UDF which will be called when this model is invoked.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asSpark(args: Seq[Expression]): Expression

    Convert a Model to a Spark Expression in Spark SQL's logical plan.

    Convert a Model to a Spark Expression in Spark SQL's logical plan.

    Definition Classes
    SparkUDFModelSparkRunnable
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. val funcName: String
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def javaOptions: Map[String, String]

    Return options as java Map, so that it is easily accessible in Python via py4j.

    Return options as java Map, so that it is easily accessible in Python via py4j.

    Definition Classes
    Model
  15. val name: String

    Model Name

    Model Name

    Definition Classes
    SparkUDFModelModel
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. val options: Map[String, String]

    Model Options.

    Model Options.

    Definition Classes
    Model
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    SparkUDFModel → AnyRef → Any
  22. val uri: String

    Model URI in the registry

    Model URI in the registry

    Definition Classes
    SparkUDFModelModel
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from SparkRunnable

Inherited from Model

Inherited from AnyRef

Inherited from Any

Ungrouped