Object

org.tresamigos.smv.shell

ShellCmd

Related Doc: package shell

Permalink

object ShellCmd

Provide functions for the interactive shell

In SMV's tools/conf/smv_shell_init.scala or project's conf/shell_init.scala add

import org.tresamigos.smv.shell._
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ShellCmd
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def _edd(name: String, collector: SmvRunInfoCollector = new SmvRunInfoCollector): String

    Permalink
  5. def _graph(ds: SmvDataSet): String

    Permalink

    take a DS, print in-stage dependency of that DS

  6. def _graph(): String

    Permalink
  7. def _graph(stageName: String): String

    Permalink

    take a stage name and print all DS in this stage, without unused input DS

  8. def _graphStage(): String

    Permalink

    take no parameter, print stages and inter-stage links

  9. def ancestors(dsName: String): String

    Permalink
  10. def ancestors(ds: SmvDataSet): String

    Permalink

    list all ancestors of a dataset ancestors are datasets current dataset depends on, directly or in-directly, even include datasets from other stages

  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def descendants(dsName: String): String

    Permalink
  14. def descendants(ds: SmvDataSet): String

    Permalink

    list all descendants of a dataset descendants are datasets which depend on the current dataset directly or in-directly, even include datasets from other stages

  15. def df(ds: SmvDataSet): DataFrame

    Permalink

    Resolve SmvDataSet

    Resolve SmvDataSet

    ds

    an SmvDataSet

    returns

    result DataFrame

  16. def edd(name: String): Unit

    Permalink
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. def exportToHive(dsName: String, collector: SmvRunInfoCollector = new SmvRunInfoCollector): Serializable

    Permalink

    Export dataset's running result to a Hive table

  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. def help: String

    Permalink

    list all the smv-shell commands

  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def ls: String

    Permalink

    list all the datasets in the entire project

  26. def ls(stageName: String): String

    Permalink

    list all datasets in a stage

    list all datasets in a stage

    stageName

    could be the FQN or just the basename

  27. def lsDead: String

    Permalink

    list dead datasets in the entire project

  28. def lsDead(stageName: String): String

    Permalink

    list dead datasets in a stage dead dataset is defined as "no contribution to the Output modules of the stage"

    list dead datasets in a stage dead dataset is defined as "no contribution to the Output modules of the stage"

    stageName

    could be the FQN or the basename

  29. def lsDeadLeaf: String

    Permalink

    list leaf datasets in the entire project

  30. def lsDeadLeaf(stageName: String): String

    Permalink

    list deadLeaf datasets in a stage deadLeaf dataset is defined as "no modules in the stage depend on it, excluding Output modules" Note: a deadLeaf dataset must be dead, but some dead datasets are Not leafs

    list deadLeaf datasets in a stage deadLeaf dataset is defined as "no modules in the stage depend on it, excluding Output modules" Note: a deadLeaf dataset must be dead, but some dead datasets are Not leafs

    stageName

    could be the FQN or the basename

  31. def lsStage: String

    Permalink

    list all the stages

  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. def now(): String

    Permalink

    Print current time

  36. def openCsv(path: String): DataFrame

    Permalink
  37. def openCsv(path: String, ca: CsvAttributes, parserCheck: Boolean, collector: SmvRunInfoCollector = new SmvRunInfoCollector): DataFrame

    Permalink

    Read in a Csv file as DF

  38. def openHive(tableName: String, collector: SmvRunInfoCollector = new SmvRunInfoCollector): DataFrame

    Permalink

    Read in a Hive table as DF

  39. def smvExportCsv(name: String, path: String, collector: SmvRunInfoCollector = new SmvRunInfoCollector): Unit

    Permalink

    Deprecated

  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  41. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  42. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped