org.apache.spark.repl

SparkILoop

class SparkILoop extends LoopCommands 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, LoopCommands, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SparkILoop
  2. Logging
  3. LoopCommands
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SparkILoop()

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

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

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

Type Members

  1. class SparkILoopInterpreter extends SparkIMain

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. def addAllClasspath(args: Seq[String]): Unit

  7. def addClasspath(arg: String): Unit

  8. def addReplay(cmd: String): Unit

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

  9. var addedClasspath: String

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. 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.

  12. def clone(): AnyRef

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

    Close the interpreter and set the var to null.

  14. 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.

  15. def commands: List[LoopCommand]

    Available commands

  16. def createInterpreter(): Unit

    Create a new interpreter.

  17. def createSparkContext(): SparkContext

  18. def echoCommandMessage(msg: String): Unit

    Definition Classes
    LoopCommands
  19. def enablePowerMode(): Unit

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

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

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

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

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

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

    print a friendly help message

  26. def history: History

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

    Show the history

  28. var in: InteractiveReader

  29. def initLogging(): Unit

    Attributes
    protected
    Definition Classes
    Logging
  30. def initializeSpark(): Unit

  31. def interpretAllFrom(file: File): Unit

    interpret all lines from a specified file

  32. 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.

  33. var intp: SparkIMain

  34. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  35. def isTraceEnabled(): Boolean

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

  37. def loadFiles(settings: Settings): Unit

  38. def log: Logger

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

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

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

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    Logging
  49. 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.

  50. val master: Option[String]

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

    Definition Classes
    AnyRef
  52. def newJavap(): Javap

    Attributes
    protected
  53. final def notify(): Unit

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

    Definition Classes
    AnyRef
  55. 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
  56. val out: PrintWriter

    Definition Classes
    SparkILoop → LoopCommands
  57. def pasteCommand(): Result

  58. def powerCmd(): Result

  59. lazy val powerCommands: List[LoopCommand]

    Power user commands

  60. def printWelcome(): Unit

    Print a welcome message

  61. def process(args: Array[String]): Boolean

    process command-line arguments and do as they request

  62. def process(settings: Settings): Boolean

  63. def prompt: String

    Prompt to print when awaiting input

  64. def replay(): Unit

    create a new interpreter and replay all commands so far

  65. var replayCommandStack: List[String]

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

  66. def replayCommands: List[String]

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

  67. val replayQuestionMessage: String

  68. def searchHistory(_cmdline: String): Unit

    Search the history

  69. def setPrompt(prompt: String): Unit

  70. var settings: Settings

  71. lazy val shCommand: LoopCommand

    fork a shell and run a command

  72. var sparkContext: SparkContext

  73. lazy val standardCommands: List[LoopCommand]

    Standard commands *

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

    Definition Classes
    AnyRef
  75. def toString(): String

    Definition Classes
    AnyRef → Any
  76. def verbosity(): Unit

  77. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  80. 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

  4. def main(args: Array[String]): Unit

    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use process instead

Inherited from Logging

Inherited from LoopCommands

Inherited from AnyRef

Inherited from Any