org.apache.spark.repl

SparkILoop

class SparkILoop extends LoopCommands with SparkILoopInit with Logging

The Scala interactive shell. It provides a read-eval-print loop around the Interpreter class. After instantiation, clients should call the main() method.

If no in0 is specified, then input will come from the console, and the class will attempt to provide input editing feature such as input history.

Version

1.2

Linear Supertypes
Logging, SparkILoopInit, LoopCommands, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SparkILoop
  2. Logging
  3. SparkILoopInit
  4. LoopCommands
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SparkILoop()

  2. new SparkILoop(in0: BufferedReader, out: JPrintWriter)

  3. new SparkILoop(in0: BufferedReader, out: JPrintWriter, master: String)

  4. new SparkILoop(in0: Option[BufferedReader], out: JPrintWriter, master: Option[String])

Type Members

  1. class IMainOps[T <: SparkIMain] extends AnyRef

  2. class LineCmd extends LoopCommand

    Definition Classes
    LoopCommands
  3. abstract class LoopCommand extends (String) ⇒ Result

    Definition Classes
    LoopCommands
  4. class NullaryCmd extends LoopCommand

    Definition Classes
    LoopCommands
  5. case class Result extends Product with Serializable

    Definition Classes
    LoopCommands
  6. class SparkILoopInterpreter extends SparkIMain

  7. class VarArgsCmd extends LoopCommand

    Definition Classes
    LoopCommands

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object LoopCommand

    Definition Classes
    LoopCommands
  7. object Result extends Serializable

    Definition Classes
    LoopCommands
  8. def addAllClasspath(args: Seq[String]): Unit

  9. def addClasspath(arg: String): Unit

  10. def addReplay(cmd: String): Unit

    Record a command for replay should the user request a :replay

  11. def addThunk(body: ⇒ Unit): Unit

    Attributes
    protected
    Definition Classes
    SparkILoopInit
  12. var addedClasspath: String

  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def asyncEcho(async: Boolean, msg: ⇒ String): Unit

  15. def asyncMessage(msg: String): Unit

    Attributes
    protected
    Definition Classes
    SparkILoopInit
  16. def awaitInitialized(): Boolean

    Attributes
    protected
    Definition Classes
    SparkILoopInit
  17. def chooseReader(settings: Settings): InteractiveReader

    Tries to create a JLineReader, falling back to SimpleReader: unless settings or properties are such that it should start with SimpleReader.

  18. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. def closeInterpreter(): Unit

    Close the interpreter and set the var to null.

  20. def command(line: String): Result

    Run one command submitted by the user.

    Run one command submitted by the user. Two values are returned: (1) whether to keep running, (2) the line to record for replay, if any.

  21. def commands: List[LoopCommand]

    Available commands

  22. def createAsyncListener(): Future[Unit]

    Attributes
    protected
    Definition Classes
    SparkILoopInit
  23. def createInterpreter(): Unit

    Create a new interpreter.

  24. def createSparkContext(): SparkContext

  25. def echo(msg: String): Unit

    Attributes
    protected
  26. def echoAndRefresh(msg: String): Unit

    Attributes
    protected
  27. def echoCommandMessage(msg: String): Unit

    Definition Classes
    SparkILoop → LoopCommands
  28. def echoNoNL(msg: String): Unit

    Attributes
    protected
  29. def enablePowerMode(isDuringInit: Boolean): Unit

  30. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  32. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  35. def helpCommand(line: String): Result

    print a friendly help message

  36. def history: History

  37. lazy val historyCommand: LoopCommand { def defaultLines: Int }

    Show the history

  38. var in: InteractiveReader

  39. def initializeSpark(): Unit

    Definition Classes
    SparkILoopInit
  40. def initializedCallback(): Unit

    Attributes
    protected
    Definition Classes
    SparkILoopInit
  41. def interpretAllFrom(file: File): Unit

    interpret all lines from a specified file

  42. def interpretStartingWith(code: String): Option[String]

    Interpret expressions starting with the first line.

    Interpret expressions starting with the first line. Read lines until a complete compilation unit is available or until a syntax error has been seen. If a full unit is read, go ahead and interpret it. Return the full string to be recorded for replay, if any.

  43. var intp: SparkIMain

  44. def isAsync: Boolean

  45. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  46. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  47. def loadCommand(arg: String): Result

  48. def loadFiles(settings: Settings): Unit

  49. def log: Logger

    Attributes
    protected
    Definition Classes
    Logging
  50. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  51. def logDebug(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  52. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  53. def logError(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  54. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  55. def logInfo(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  56. def logName: String

    Attributes
    protected
    Definition Classes
    Logging
  57. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  58. def logTrace(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  59. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  60. def logWarning(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  61. def loop(): Unit

    The main read-eval-print loop for the repl.

    The main read-eval-print loop for the repl. It calls command() for each line of input, and stops when command() returns false.

  62. val m: scala.reflect.api.JavaUniverse.Mirror

  63. val master: Option[String]

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

    Definition Classes
    AnyRef
  65. def newJavap(): JavapClass

    Attributes
    protected
  66. final def notify(): Unit

    Definition Classes
    AnyRef
  67. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  68. val originalClassLoader: ClassLoader

    The context class loader at the time this object was created

    The context class loader at the time this object was created

    Attributes
    protected
  69. val out: JPrintWriter

    Attributes
    protected
    Definition Classes
    SparkILoop → LoopCommands
  70. def pasteCommand(): Result

  71. def postInitThunks: List[() ⇒ Unit]

    Attributes
    protected
    Definition Classes
    SparkILoopInit
  72. def postInitialization(): Unit

    Attributes
    protected
    Definition Classes
    SparkILoopInit
  73. def powerCmd(): Result

  74. lazy val powerCommands: List[LoopCommand]

    Power user commands

  75. def printWelcome(): Unit

    Print a welcome message

    Print a welcome message

    Definition Classes
    SparkILoopInit
  76. def process(args: Array[String]): Boolean

    process command-line arguments and do as they request

  77. def process(settings: Settings): Boolean

  78. def prompt: String

    Prompt to print when awaiting input

  79. def replay(): Unit

    create a new interpreter and replay the given commands

  80. var replayCommandStack: List[String]

    A reverse list of commands to replay if the user requests a :replay

  81. def replayCommands: List[String]

    A list of commands to replay if the user requests a :replay

  82. def reset(): Unit

  83. def resetCommand(): Unit

  84. def runThunks(): Unit

    Attributes
    protected
    Definition Classes
    SparkILoopInit
  85. def savingReader[T](body: ⇒ T): T

  86. def savingReplayStack[T](body: ⇒ T): T

  87. def searchHistory(_cmdline: String): Unit

    Search the history

  88. def setPrompt(prompt: String): Unit

  89. var settings: Settings

  90. lazy val shCommand: LoopCommand

    fork a shell and run a command

  91. def sparkCleanUp(): Unit

  92. var sparkContext: SparkContext

  93. implicit def stabilizeIMain(intp: SparkIMain): IMainOps[stabilizeIMain.intp.type]

  94. lazy val standardCommands: List[LoopCommand]

    Standard commands

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

    Definition Classes
    AnyRef
  96. def toString(): String

    Definition Classes
    AnyRef → Any
  97. val u: universe.type

  98. def verbosity(): Unit

  99. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  102. def withFile(filename: String)(action: (File) ⇒ Unit): Unit

Deprecated Value Members

  1. def interpreter: SparkIMain

    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use intp instead.

  2. def interpreter_=(i: SparkIMain): Unit

    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use intp instead.

  3. def main(settings: Settings): Unit

    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use process instead

Inherited from Logging

Inherited from SparkILoopInit

Inherited from LoopCommands

Inherited from AnyRef

Inherited from Any

Ungrouped