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.

Annotations
@DeveloperApi()
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 addThunk(body: ⇒ Unit): Unit

    Attributes
    protected
    Definition Classes
    SparkILoopInit
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def asyncMessage(msg: String): Unit

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

    Attributes
    protected
    Definition Classes
    SparkILoopInit
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def commands: List[LoopCommand]

    Provides a list of available commands.

    Provides a list of available commands.

    returns

    The list of commands

    Annotations
    @DeveloperApi()
  14. def createAsyncListener(): Future[Unit]

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

    Constructs a new interpreter.

    Constructs a new interpreter.

    Attributes
    protected
  16. def createSparkSession(): SparkSession

    Annotations
    @DeveloperApi()
  17. def echoCommandMessage(msg: String): Unit

    Definition Classes
    SparkILoop → LoopCommands
  18. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def getAddedJars(): Array[String]

    Annotations
    @DeveloperApi()
  22. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  24. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

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

    Definition Classes
    SparkILoopInit
  26. def initializedCallback(): Unit

    Attributes
    protected
    Definition Classes
    SparkILoopInit
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  29. def log: Logger

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    Logging
  36. def logName: String

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

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

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

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

    Attributes
    protected
    Definition Classes
    Logging
  41. val master: Option[String]

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

    Definition Classes
    AnyRef
  43. final def notify(): Unit

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

    Definition Classes
    AnyRef
  45. 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
  46. val out: JPrintWriter

    Attributes
    protected
    Definition Classes
    SparkILoop → LoopCommands
  47. def postInitThunks: List[() ⇒ Unit]

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

    Attributes
    protected
    Definition Classes
    SparkILoopInit
  49. def printWelcome(): Unit

    Print a welcome message

    Print a welcome message

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

    process command-line arguments and do as they request

  51. def prompt: String

    Represents the current prompt string used by the REPL.

    Represents the current prompt string used by the REPL.

    returns

    The current prompt string

    Annotations
    @DeveloperApi()
  52. def runThunks(): Unit

    Attributes
    protected
    Definition Classes
    SparkILoopInit
  53. def setPrompt(prompt: String): Unit

    Sets the prompt string used by the REPL.

    Sets the prompt string used by the REPL.

    prompt

    The new prompt string

    Annotations
    @DeveloperApi()
  54. var sparkContext: SparkContext

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

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

    Definition Classes
    AnyRef
  57. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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.

Inherited from Logging

Inherited from SparkILoopInit

Inherited from LoopCommands

Inherited from AnyRef

Inherited from Any

Ungrouped