class HiveContext extends classic.SQLContext with Logging
An instance of the Spark SQL execution engine that integrates with data stored in Hive. Configuration for Hive is read from hive-site.xml on the classpath.
- Self Type
- HiveContext
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0) Use SparkSession.builder.enableHiveSupport instead
- Alphabetic
- By Inheritance
- HiveContext
- SQLContext
- SQLContext
- Serializable
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit class LogStringContext extends AnyRef
- Definition Classes
- Logging
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
- def applySchema(rdd: JavaRDD[_], beanClass: Class[_]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def applySchema(rdd: RDD[_], beanClass: Class[_]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def applySchema(rowRDD: JavaRDD[Row], schema: StructType): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def applySchema(rowRDD: RDD[Row], schema: StructType): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def baseRelationToDataFrame(baseRelation: BaseRelation): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def cacheTable(tableName: String): Unit
- Definition Classes
- SQLContext
- def clearCache(): Unit
- Definition Classes
- SQLContext
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def createDataFrame(data: List[_], beanClass: Class[_]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def createDataFrame(rdd: JavaRDD[_], beanClass: Class[_]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def createDataFrame(rdd: RDD[_], beanClass: Class[_]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def createDataFrame(rows: List[Row], schema: StructType): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- Annotations
- @DeveloperApi()
- def createDataFrame(rowRDD: JavaRDD[Row], schema: StructType): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- Annotations
- @DeveloperApi()
- def createDataFrame(rowRDD: RDD[Row], schema: StructType): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- Annotations
- @DeveloperApi()
- def createDataFrame[A <: Product](data: Seq[A])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def createDataFrame[A <: Product](rdd: RDD[A])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def createDataset[T](data: List[T])(implicit arg0: Encoder[T]): classic.Dataset[T]
- Definition Classes
- SQLContext → SQLContext
- def createDataset[T](data: RDD[T])(implicit arg0: Encoder[T]): classic.Dataset[T]
- Definition Classes
- SQLContext → SQLContext
- def createDataset[T](data: Seq[T])(implicit arg0: Encoder[T]): classic.Dataset[T]
- Definition Classes
- SQLContext → SQLContext
- def createExternalTable(tableName: String, source: String, schema: StructType, options: Map[String, String]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def createExternalTable(tableName: String, source: String, schema: StructType, options: Map[String, String]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def createExternalTable(tableName: String, source: String, options: Map[String, String]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def createExternalTable(tableName: String, source: String, options: Map[String, String]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def createExternalTable(tableName: String, path: String, source: String): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def createExternalTable(tableName: String, path: String): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def dropTempTable(tableName: String): Unit
- Definition Classes
- SQLContext
- def emptyDataFrame: classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def experimental: ExperimentalMethods
- Definition Classes
- SQLContext → SQLContext
- Annotations
- @Experimental() @transient() @Unstable()
- def getAllConfs: Map[String, String]
- Definition Classes
- SQLContext
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getConf(key: String, defaultValue: String): String
- Definition Classes
- SQLContext
- def getConf(key: String): String
- Definition Classes
- SQLContext
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def initializeLogIfNecessary(isInterpreter: Boolean): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def isCached(tableName: String): Boolean
- Definition Classes
- SQLContext
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraceEnabled(): Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def jdbc(url: String, table: String, theParts: Array[String]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def jdbc(url: String, table: String, columnName: String, lowerBound: Long, upperBound: Long, numPartitions: Int): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def jdbc(url: String, table: String): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def jsonFile(path: String, samplingRatio: Double): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def jsonFile(path: String, schema: StructType): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def jsonFile(path: String): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def jsonRDD(json: JavaRDD[String], samplingRatio: Double): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def jsonRDD(json: RDD[String], samplingRatio: Double): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def jsonRDD(json: JavaRDD[String], schema: StructType): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def jsonRDD(json: RDD[String], schema: StructType): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def jsonRDD(json: JavaRDD[String]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def jsonRDD(json: RDD[String]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def listenerManager: ExecutionListenerManager
- Definition Classes
- SQLContext → SQLContext
- def load(source: String, schema: StructType, options: Map[String, String]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def load(source: String, schema: StructType, options: Map[String, String]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def load(source: String, options: Map[String, String]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def load(source: String, options: Map[String, String]): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def load(path: String, source: String): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def load(path: String): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def log: Logger
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(entry: LogEntry): 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(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(entry: LogEntry): 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(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(entry: LogEntry): 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(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(entry: LogEntry): 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(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(entry: LogEntry): 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
- def newSession(): HiveContext
Returns a new HiveContext as new session, which will have separated SQLConf, UDF/UDAF, temporary tables and SessionState, but sharing the same CacheManager, IsolatedClientLoader and Hive client (both of execution and metadata) with existing HiveContext.
Returns a new HiveContext as new session, which will have separated SQLConf, UDF/UDAF, temporary tables and SessionState, but sharing the same CacheManager, IsolatedClientLoader and Hive client (both of execution and metadata) with existing HiveContext.
- Definition Classes
- HiveContext → SQLContext → SQLContext
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def parquetFile(paths: String*): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- Annotations
- @varargs()
- def range(start: Long, end: Long, step: Long, numPartitions: Int): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def range(start: Long, end: Long, step: Long): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def range(start: Long, end: Long): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def range(end: Long): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def read: classic.DataFrameReader
- Definition Classes
- SQLContext → SQLContext
- def readStream: DataStreamReader
- Definition Classes
- SQLContext → SQLContext
- def refreshTable(tableName: String): Unit
Invalidate and refresh all the cached the metadata of the given table.
Invalidate and refresh all the cached the metadata of the given table. For performance reasons, Spark SQL or the external data source library it uses might cache certain metadata about a table, such as the location of blocks. When those change outside of Spark SQL, users should call this function to invalidate the cache.
- Since
1.3.0
- def setConf(props: Properties): Unit
- Definition Classes
- SQLContext → SQLContext
- def setConf(key: String, value: String): Unit
- Definition Classes
- SQLContext
- def sparkContext: SparkContext
- Definition Classes
- SQLContext → SQLContext
- val sparkSession: classic.SparkSession
- Definition Classes
- SQLContext → SQLContext
- def sql(sqlText: String): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def streams: StreamingQueryManager
- Definition Classes
- SQLContext → SQLContext
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def table(tableName: String): classic.Dataset[Row]
- Definition Classes
- SQLContext → SQLContext
- def tableNames(databaseName: String): Array[String]
- Definition Classes
- SQLContext
- def tableNames(): Array[String]
- Definition Classes
- SQLContext
- def tables(databaseName: String): classic.DataFrame
- Definition Classes
- SQLContext → SQLContext
- def tables(): classic.DataFrame
- Definition Classes
- SQLContext → SQLContext
- def toString(): String
- Definition Classes
- AnyRef → Any
- def udf: classic.UDFRegistration
- Definition Classes
- SQLContext → SQLContext
- def uncacheTable(tableName: String): Unit
- Definition Classes
- SQLContext
- 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 withLogContext(context: Map[String, String])(body: => Unit): Unit
- Attributes
- protected
- Definition Classes
- Logging
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)