trait SparkParserUtils extends AnyRef
- Alphabetic
- By Inheritance
- SparkParserUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def command(ctx: ParserRuleContext): String
Get the command which created the token.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def position(token: Token): Origin
Get the origin (line and position) of the token.
- def positionAndText(startToken: Token, stopToken: Token, sqlText: String, objectType: Option[String], objectName: Option[String]): Origin
- def source(ctx: ParserRuleContext): String
Get the code that creates the given node.
- def string(node: TerminalNode): String
Convert a string node into a string.
- def string(token: Token): String
Convert a string token into a string.
- def stringIgnoreQuoteQuote(token: Token): String
Convert a string token into a string and remove
""
and.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unescapeSQLString(b: String, ignoreQuoteQuote: Boolean = false): String
Unescape escaped string enclosed by quotes, with support for:
Unescape escaped string enclosed by quotes, with support for:
- Double-quote escaping (
""
,) 2. Traditional backslash escaping (\n, \t, \", etc.)
- b
The input string
- ignoreQuoteQuote
If true, consecutive quotes (
→or
"") are treated as string concatenation and will be removed directly (e.g.,
'ab'ab
). If false, they are treated as escape sequences (e.g.,'ab'
→
a'b). Default is false (standard SQL escaping).
- Double-quote escaping (
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withOrigin[T](ctx: ParserRuleContext, sqlText: Option[String] = None)(f: => T): T
Register the origin of the context.
Register the origin of the context. Any TreeNode created in the closure will be assigned the registered origin. This method restores the previously set origin after completion of the closure.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)