object Utils extends Logging
- Alphabetic
- By Inheritance
- Utils
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- val DEFAULT_SHUTDOWN_PRIORITY: Int
- val SERVER_SHUTDOWN_PRIORITY: Int
- val SPARK_CONTEXT_SHUTDOWN_PRIORITY: Int
-
def
addShutdownHook(hook: Runnable, priority: Int = DEFAULT_SHUTDOWN_PRIORITY): Unit
Add some operations that you want into ShutdownHook
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
createDirectory(root: String, namePrefix: String = "kyuubi"): Path
Create a directory inside the given parent directory.
Create a directory inside the given parent directory. The directory is guaranteed to be newly created, and is not marked for automatic deletion.
-
def
createTempDir(root: String = ..., namePrefix: String = "kyuubi"): Path
Create a temporary directory inside the given parent directory.
Create a temporary directory inside the given parent directory. The directory will be automatically deleted when the VM shuts down.
- def currentUser: String
-
def
debug(message: ⇒ Any): Unit
- Definition Classes
- Logging
-
def
deleteDirectoryRecursively(f: File): Boolean
Delete a directory recursively.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
error(message: ⇒ Any): Unit
- Definition Classes
- Logging
-
def
error(message: ⇒ Any, t: Throwable): Unit
- Definition Classes
- Logging
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
findLocalInetAddress: InetAddress
This block of code is based on Spark's Utils.findLocalInetAddress()
- def getAbsolutePathFromWork(pathStr: String, env: Map[String, String] = sys.env): Path
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getDateFromTimestamp(time: Long): String
return date of format yyyyMMdd
- def getDefaultPropertiesFile(env: Map[String, String] = sys.env): Option[File]
- def getPropertiesFromFile(file: Option[File]): Map[String, String]
- def getSystemProperties: Map[String, String]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
info(message: ⇒ Any): Unit
- Definition Classes
- Logging
-
def
initializeLoggerIfNecessary(isInterpreter: Boolean): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isTesting: Boolean
Indicates whether Kyuubi is currently running unit tests.
-
val
isWindows: Boolean
Whether the underlying operating system is Windows.
-
def
logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
-
def
loggerName: String
- Attributes
- protected
- Definition Classes
- Logging
-
def
majorMinorVersion(version: String): (Int, Int)
Given a Kyuubi/Spark/Hive version string, return the (major version number, minor version number).
Given a Kyuubi/Spark/Hive version string, return the (major version number, minor version number). E.g., for 2.0.1-SNAPSHOT, return (2, 0).
-
def
majorVersion(version: String): Int
Given a Kyuubi/Spark/Hive version string, return the major version number.
Given a Kyuubi/Spark/Hive version string, return the major version number. E.g., for 2.0.1-SNAPSHOT, return 2.
-
def
minorVersion(version: String): Int
Given a Kyuubi/Spark/Hive version string, return the minor version number.
Given a Kyuubi/Spark/Hive version string, return the minor version number. E.g., for 2.0.1-SNAPSHOT, return 0.
-
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()
-
def
shortVersion(version: String): String
Given a Kyuubi/Spark/Hive version string, return the short version string.
Given a Kyuubi/Spark/Hive version string, return the short version string. E.g., for 3.0.0-SNAPSHOT, return '3.0.0'.
- def strToSeq(s: String, sp: String = ","): Seq[String]
-
def
stringifyException(e: Throwable): String
Make a string representation of the exception.
-
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()
-
def
warn(message: ⇒ Any, t: Throwable): Unit
- Definition Classes
- Logging
-
def
warn(message: ⇒ Any): Unit
- Definition Classes
- Logging