Packages

p

com.silectis

magpie

package magpie

Core Magpie functionality. The main entry point is com.silectis.magpie.MagpieContext, which provides the ability to run commands, execute SQL, and more. It is available as mc in scala script tasks and scala notebook blocks.

Linear Supertypes
AnyRef, Any

Type Members

  1. final class MagpieContext extends AnyRef

    Main entry point for Magpie functionality.

    Main entry point for Magpie functionality. The MagpieContext is used to execute commands, run SQL queries, get data frames for Magpie tables, and more.

    Available as mc in scala script tasks and scala notebook blocks.

    Example usage:

    val flavors = Seq("apple", "banana", "strawberry")
    
    flavors.foreach { f =>
      mc.sql(s"select * from store_sales where flavor = '$f'")
      mc.exec(s"save result as table ${f}_sales")
    }
  2. class MagpieException extends RuntimeException

    An exception thrown by magpie.

  3. case class MagpieInfo(name: String, instance: String, version: String, user: Option[String], organization: Option[String], cluster: Option[String], repository: Option[String], schema: Option[String], project: Option[String]) extends Product with Serializable

    Information about a Magpie session

    Information about a Magpie session

    name

    name of the application (Magpie)

    instance

    cluster instance name

    version

    application version

    user

    current user name, if set

    organization

    current organization name, if set

    cluster

    current cluster name, if set

    repository

    current repository name, if set

    schema

    current schema name, if set

    project

    current project name, if set

Inherited from AnyRef

Inherited from Any

Ungrouped