c

org.apache.spark.sql.catalyst.parser

SparkParserBailErrorStrategy

class SparkParserBailErrorStrategy extends SparkParserErrorStrategy

Inspired by org.antlr.v4.runtime.BailErrorStrategy, which is used in two-stage parsing: This error strategy allows the first stage of two-stage parsing to immediately terminate if an error is encountered, and immediately fall back to the second stage. In addition to avoiding wasted work by attempting to recover from errors here, the empty implementation of sync improves the performance of the first stage.

Linear Supertypes
SparkParserErrorStrategy, DefaultErrorStrategy, ANTLRErrorStrategy, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SparkParserBailErrorStrategy
  2. SparkParserErrorStrategy
  3. DefaultErrorStrategy
  4. ANTLRErrorStrategy
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SparkParserBailErrorStrategy()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def beginErrorCondition(arg0: Parser): Unit
    Attributes
    protected[runtime]
    Definition Classes
    DefaultErrorStrategy
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. def consumeUntil(arg0: Parser, arg1: IntervalSet): Unit
    Attributes
    protected[runtime]
    Definition Classes
    DefaultErrorStrategy
  8. def endErrorCondition(arg0: Parser): Unit
    Attributes
    protected[runtime]
    Definition Classes
    DefaultErrorStrategy
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def escapeWSAndQuote(arg0: String): String
    Attributes
    protected[runtime]
    Definition Classes
    DefaultErrorStrategy
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getErrorRecoverySet(arg0: Parser): IntervalSet
    Attributes
    protected[runtime]
    Definition Classes
    DefaultErrorStrategy
  15. def getExpectedTokens(arg0: Parser): IntervalSet
    Attributes
    protected[runtime]
    Definition Classes
    DefaultErrorStrategy
  16. def getMissingSymbol(arg0: Parser): Token
    Attributes
    protected[runtime]
    Definition Classes
    DefaultErrorStrategy
  17. def getSymbolText(arg0: Token): String
    Attributes
    protected[runtime]
    Definition Classes
    DefaultErrorStrategy
  18. def getSymbolType(arg0: Token): Int
    Attributes
    protected[runtime]
    Definition Classes
    DefaultErrorStrategy
  19. def getTokenErrorDisplay(t: Token): String

    Get the user-facing display of the error token.

    Get the user-facing display of the error token.

    Definition Classes
    SparkParserErrorStrategy → DefaultErrorStrategy
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def inErrorRecoveryMode(arg0: Parser): Boolean
    Definition Classes
    DefaultErrorStrategy → ANTLRErrorStrategy
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def recover(recognizer: Parser, e: RecognitionException): Unit

    Instead of recovering from exception e, re-throw it wrapped in a ParseCancellationException so it is not caught by the rule function catches.

    Instead of recovering from exception e, re-throw it wrapped in a ParseCancellationException so it is not caught by the rule function catches. Use Exception#getCause to get the original RecognitionException.

    Definition Classes
    SparkParserBailErrorStrategy → DefaultErrorStrategy → ANTLRErrorStrategy
  27. def recoverInline(recognizer: Parser): Token

    Make sure we don't attempt to recover inline; if the parser successfully recovers, it won't throw an exception.

    Make sure we don't attempt to recover inline; if the parser successfully recovers, it won't throw an exception.

    Definition Classes
    SparkParserBailErrorStrategy → DefaultErrorStrategy → ANTLRErrorStrategy
    Annotations
    @throws( ... )
  28. def reportError(arg0: Parser, arg1: RecognitionException): Unit
    Definition Classes
    DefaultErrorStrategy → ANTLRErrorStrategy
  29. def reportFailedPredicate(arg0: Parser, arg1: FailedPredicateException): Unit
    Attributes
    protected[runtime]
    Definition Classes
    DefaultErrorStrategy
  30. def reportInputMismatch(recognizer: Parser, e: InputMismatchException): Unit
    Definition Classes
    SparkParserErrorStrategy → DefaultErrorStrategy
  31. def reportMatch(arg0: Parser): Unit
    Definition Classes
    DefaultErrorStrategy → ANTLRErrorStrategy
  32. def reportMissingToken(recognizer: Parser): Unit
    Definition Classes
    SparkParserErrorStrategy → DefaultErrorStrategy
  33. def reportNoViableAlternative(recognizer: Parser, e: NoViableAltException): Unit
    Definition Classes
    SparkParserErrorStrategy → DefaultErrorStrategy
  34. def reportUnwantedToken(recognizer: Parser): Unit
    Definition Classes
    SparkParserErrorStrategy → DefaultErrorStrategy
  35. def reset(arg0: Parser): Unit
    Definition Classes
    DefaultErrorStrategy → ANTLRErrorStrategy
  36. def singleTokenDeletion(arg0: Parser): Token
    Attributes
    protected[runtime]
    Definition Classes
    DefaultErrorStrategy
  37. def singleTokenInsertion(arg0: Parser): Boolean
    Attributes
    protected[runtime]
    Definition Classes
    DefaultErrorStrategy
  38. def sync(recognizer: Parser): Unit

    Make sure we don't attempt to recover from problems in subrules.

    Make sure we don't attempt to recover from problems in subrules.

    Definition Classes
    SparkParserBailErrorStrategy → DefaultErrorStrategy → ANTLRErrorStrategy
  39. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  40. def toString(): String
    Definition Classes
    AnyRef → Any
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from SparkParserErrorStrategy

Inherited from DefaultErrorStrategy

Inherited from ANTLRErrorStrategy

Inherited from AnyRef

Inherited from Any

Ungrouped