object StringUtils extends Logging
- Alphabetic
- By Inheritance
- StringUtils
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
PlanStringConcat extends StringConcat
A string concatenator for plan strings.
A string concatenator for plan strings. Uses length from a configured value, and prints a warning the first time a plan is truncated.
-
class
StringConcat extends AnyRef
Concatenation of sequence of strings to final string with cheap append method and one memory allocation for the final string.
Concatenation of sequence of strings to final string with cheap append method and one memory allocation for the final string. Can also bound the final size of the string.
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( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
escapeLikeRegex(pattern: String, escapeChar: Char): String
Validate and convert SQL 'like' pattern to a Java regular expression.
Validate and convert SQL 'like' pattern to a Java regular expression.
Underscores (_) are converted to '.' and percent signs (%) are converted to '.*', other characters are quoted literally. Escaping is done according to the rules specified in org.apache.spark.sql.catalyst.expressions.Like usage documentation. An invalid pattern will throw an AnalysisException.
- pattern
the SQL pattern to convert
- escapeChar
the escape string contains one character.
- returns
the equivalent Java regular expression of the pattern
-
def
filterPattern(names: Seq[String], pattern: String): Seq[String]
This utility can be used for filtering pattern in the "Like" of "Show Tables / Functions" DDL
This utility can be used for filtering pattern in the "Like" of "Show Tables / Functions" DDL
- names
the names list to be filtered
- pattern
the filter pattern, only '*' and '|' are allowed as wildcards, others will follow regular expression convention, case insensitive match and white spaces on both ends will be ignored
- returns
the filtered names list in order
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
- Attributes
- protected
- Definition Classes
- Logging
-
def
initializeLogIfNecessary(isInterpreter: Boolean): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def isFalseString(s: UTF8String): Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isTraceEnabled(): Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def isTrueString(s: UTF8String): Boolean
-
def
log: Logger
- Attributes
- protected
- Definition Classes
- Logging
-
def
logDebug(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logDebug(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logError(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logError(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logInfo(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logInfo(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logName: String
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTrace(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTrace(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logWarning(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logWarning(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()