Package

mist

api

Permalink

package api

Visibility
  1. Public
  2. All

Type Members

  1. trait ArgDef[A] extends AnyRef

    Permalink
  2. sealed trait ArgInfo extends AnyRef

    Permalink
  3. sealed trait ArgType extends AnyRef

    Permalink
  4. trait ArgsInstances extends AnyRef

    Permalink
  5. final case class Extracted[+A](value: A) extends Extraction[A] with Product with Serializable

    Permalink
  6. sealed trait Extraction[+A] extends AnyRef

    Permalink
  7. sealed trait Failed extends Extraction[Nothing]

    Permalink
  8. sealed trait FnContext extends AnyRef

    Permalink
  9. trait FnEntryPoint extends AnyRef

    Permalink
  10. case class FullFnContext(sc: SparkContext, streamingDuration: Duration, info: RuntimeJobInfo, params: JsMap) extends FnContext with Product with Serializable

    Permalink
  11. trait Handle extends RawHandle[JsData]

    Permalink
  12. case class InternalArgument(tags: Seq[String] = Seq.empty) extends ArgInfo with Product with Serializable

    Permalink
  13. trait Logging extends AnyRef

    Permalink
  14. final case class MList(v: ArgType) extends ArgType with Product with Serializable

    Permalink
  15. final case class MMap(k: ArgType, v: ArgType) extends RootArgType with Product with Serializable

    Permalink
  16. final case class MObj(fields: Seq[(String, ArgType)]) extends RootArgType with Product with Serializable

    Permalink
  17. final case class MOption(v: ArgType) extends ArgType with Product with Serializable

    Permalink
  18. class MistExtras extends AnyRef

    Permalink

    Access to mist-specific job parameters

  19. trait MistExtrasDef extends AnyRef

    Permalink

    Get access to mist-extras in job definition Example:

    Get access to mist-extras in job definition Example:

    withMistExtras.onSparkContext((extras: MistExtras, sc: SparkContext) => {
       val jobId = extras.jobId
    })
  20. abstract class MistFn extends FnEntryPoint

    Permalink

    Scala api - root class for jobs definition

    Scala api - root class for jobs definition

    Example:

    import mist.api._
    import org.apache.spark.SparkContext
    
    object MyJob extends MistFn {
      override def handle = {
        withArgs(arg[Int]("number").onSparkContext((i: Int, sc: SparkContext) => {
          sc.parallelize(1 to i).map(_ * 2).collect()
        })
      }
    }
  21. trait MistFnSyntax extends AnyRef

    Permalink

    Provide context combinators to complete job definition, that can take some another arguments + spark computational context.

    Provide context combinators to complete job definition, that can take some another arguments + spark computational context.

    Available contexts:

    • org.apache.spark.SparkContext
    • org.apache.spark.streaming.StreamingContext
    • org.apache.spark.sql.SQLContext
    • org.apache.spark.sql.hive.HiveContext

    There are two ways how to define job using that standard combinators:

    For job which doesn't require any external argument except context use one of bellow functions:

    • onSparkContext((spark: SparkContext) => {...})
    • onStreamingContext((ssc: StreamingContext) => {...})
    • onSqlContext((sqlCtx: SQLContext) => {...})
    • onHiveContext((hiveCtx: HiveContext) => {...})

    In case when you have arguments you can call that functions on them

    withArgs(arg[Int]("x") & arg[String]("str")).onSparkContext(
      (x: Int, str: String, sc: SparkContext) => {
        ...
    })
  22. class NamedUserArg[A] extends UserArg[A]

    Permalink
  23. class NamedUserArgWithDefault[A] extends UserArg[A]

    Permalink
  24. trait RawHandle[A] extends AnyRef

    Permalink
  25. sealed trait RootArgType extends ArgType

    Permalink
  26. case class RuntimeJobInfo(id: String, workerId: String) extends Product with Serializable

    Permalink
  27. trait SparkArgs extends AnyRef

    Permalink
  28. trait SystemArg[A] extends ArgDef[A]

    Permalink
  29. trait UserArg[A] extends ArgDef[A]

    Permalink
  30. case class UserInputArgument(name: String, t: ArgType) extends ArgInfo with Product with Serializable

    Permalink
  31. trait WithArgsScala extends AnyRef

    Permalink

    Scala dsl to start job definition like withArgs(a,b...n).onSparkContext(..

Value Members

  1. object ArgInfo

    Permalink
  2. object ArgType

    Permalink
  3. object ArgsInstances extends ArgsInstances

    Permalink
  4. object Extracted extends Serializable

    Permalink
  5. object Extraction

    Permalink
  6. object Failed

    Permalink
  7. object FnContext

    Permalink
  8. object FnContextBuilder

    Permalink

    For java

  9. object Handle

    Permalink
  10. object MAny extends ArgType with Product with Serializable

    Permalink
  11. object MBoolean extends ArgType with Product with Serializable

    Permalink
  12. object MDouble extends ArgType with Product with Serializable

    Permalink
  13. object MInt extends ArgType with Product with Serializable

    Permalink
  14. object MObj extends Serializable

    Permalink
  15. object MString extends ArgType with Product with Serializable

    Permalink
  16. object MistExtras

    Permalink
  17. object MistExtrasDef extends MistExtrasDef

    Permalink
  18. object MistFnSyntax extends MistFnSyntax

    Permalink
  19. object RuntimeJobInfo extends Serializable

    Permalink
  20. object SparkArgs extends SparkArgs

    Permalink
  21. object SystemArg

    Permalink
  22. object WithArgsScala extends WithArgsScala

    Permalink
  23. package data

    Permalink
  24. object dsl extends ArgsInstances with MistExtrasDef with WithArgsScala with MistFnSyntax with SparkArgs

    Permalink
  25. package encoding

    Permalink
  26. package internal

    Permalink
  27. package jdsl

    Permalink

Ungrouped