Packages

c

org.apache.spark.sql.hive

HiveContext

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

Linear Supertypes
classic.SQLContext, SQLContext, Serializable, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HiveContext
  2. SQLContext
  3. SQLContext
  4. Serializable
  5. Logging
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new HiveContext(sc: JavaSparkContext)
  2. new HiveContext(sc: SparkContext)

Type Members

  1. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging

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. def MDC(key: LogKey, value: Any): MDC
    Attributes
    protected
    Definition Classes
    Logging
  5. def applySchema(rdd: JavaRDD[_], beanClass: Class[_]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  6. def applySchema(rdd: RDD[_], beanClass: Class[_]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  7. def applySchema(rowRDD: JavaRDD[Row], schema: StructType): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  8. def applySchema(rowRDD: RDD[Row], schema: StructType): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def baseRelationToDataFrame(baseRelation: BaseRelation): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  11. def cacheTable(tableName: String): Unit
    Definition Classes
    SQLContext
  12. def clearCache(): Unit
    Definition Classes
    SQLContext
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  14. def createDataFrame(data: List[_], beanClass: Class[_]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  15. def createDataFrame(rdd: JavaRDD[_], beanClass: Class[_]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  16. def createDataFrame(rdd: RDD[_], beanClass: Class[_]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  17. def createDataFrame(rows: List[Row], schema: StructType): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
    Annotations
    @DeveloperApi()
  18. def createDataFrame(rowRDD: JavaRDD[Row], schema: StructType): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
    Annotations
    @DeveloperApi()
  19. def createDataFrame(rowRDD: RDD[Row], schema: StructType): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
    Annotations
    @DeveloperApi()
  20. def createDataFrame[A <: Product](data: Seq[A])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  21. def createDataFrame[A <: Product](rdd: RDD[A])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  22. def createDataset[T](data: List[T])(implicit arg0: Encoder[T]): classic.Dataset[T]
    Definition Classes
    SQLContext → SQLContext
  23. def createDataset[T](data: RDD[T])(implicit arg0: Encoder[T]): classic.Dataset[T]
    Definition Classes
    SQLContext → SQLContext
  24. def createDataset[T](data: Seq[T])(implicit arg0: Encoder[T]): classic.Dataset[T]
    Definition Classes
    SQLContext → SQLContext
  25. def createExternalTable(tableName: String, source: String, schema: StructType, options: Map[String, String]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  26. def createExternalTable(tableName: String, source: String, schema: StructType, options: Map[String, String]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  27. def createExternalTable(tableName: String, source: String, options: Map[String, String]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  28. def createExternalTable(tableName: String, source: String, options: Map[String, String]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  29. def createExternalTable(tableName: String, path: String, source: String): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  30. def createExternalTable(tableName: String, path: String): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  31. def dropTempTable(tableName: String): Unit
    Definition Classes
    SQLContext
  32. def emptyDataFrame: classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  33. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  35. def experimental: ExperimentalMethods
    Definition Classes
    SQLContext → SQLContext
    Annotations
    @Experimental() @transient() @Unstable()
  36. def getAllConfs: Map[String, String]
    Definition Classes
    SQLContext
  37. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  38. def getConf(key: String, defaultValue: String): String
    Definition Classes
    SQLContext
  39. def getConf(key: String): String
    Definition Classes
    SQLContext
  40. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  41. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  42. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  43. def isCached(tableName: String): Boolean
    Definition Classes
    SQLContext
  44. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  45. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  46. def jdbc(url: String, table: String, theParts: Array[String]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  47. def jdbc(url: String, table: String, columnName: String, lowerBound: Long, upperBound: Long, numPartitions: Int): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  48. def jdbc(url: String, table: String): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  49. def jsonFile(path: String, samplingRatio: Double): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  50. def jsonFile(path: String, schema: StructType): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  51. def jsonFile(path: String): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  52. def jsonRDD(json: JavaRDD[String], samplingRatio: Double): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  53. def jsonRDD(json: RDD[String], samplingRatio: Double): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  54. def jsonRDD(json: JavaRDD[String], schema: StructType): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  55. def jsonRDD(json: RDD[String], schema: StructType): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  56. def jsonRDD(json: JavaRDD[String]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  57. def jsonRDD(json: RDD[String]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  58. def listenerManager: ExecutionListenerManager
    Definition Classes
    SQLContext → SQLContext
  59. def load(source: String, schema: StructType, options: Map[String, String]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  60. def load(source: String, schema: StructType, options: Map[String, String]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  61. def load(source: String, options: Map[String, String]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  62. def load(source: String, options: Map[String, String]): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  63. def load(path: String, source: String): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  64. def load(path: String): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  65. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  66. def logBasedOnLevel(level: Level)(f: => MessageWithContext): Unit
    Attributes
    protected
    Definition Classes
    Logging
  67. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  68. def logDebug(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  69. def logDebug(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  70. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  71. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  72. def logError(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  73. def logError(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  74. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  75. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  76. def logInfo(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  77. def logInfo(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  78. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  79. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  80. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  81. def logTrace(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  82. def logTrace(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  83. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  84. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  85. def logWarning(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  86. def logWarning(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  87. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  88. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  89. 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
  90. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  91. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  92. def parquetFile(paths: String*): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
    Annotations
    @varargs()
  93. def range(start: Long, end: Long, step: Long, numPartitions: Int): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  94. def range(start: Long, end: Long, step: Long): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  95. def range(start: Long, end: Long): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  96. def range(end: Long): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  97. def read: classic.DataFrameReader
    Definition Classes
    SQLContext → SQLContext
  98. def readStream: DataStreamReader
    Definition Classes
    SQLContext → SQLContext
  99. 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

  100. def setConf(props: Properties): Unit
    Definition Classes
    SQLContext → SQLContext
  101. def setConf(key: String, value: String): Unit
    Definition Classes
    SQLContext
  102. def sparkContext: SparkContext
    Definition Classes
    SQLContext → SQLContext
  103. val sparkSession: classic.SparkSession
    Definition Classes
    SQLContext → SQLContext
  104. def sql(sqlText: String): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  105. def streams: StreamingQueryManager
    Definition Classes
    SQLContext → SQLContext
  106. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  107. def table(tableName: String): classic.Dataset[Row]
    Definition Classes
    SQLContext → SQLContext
  108. def tableNames(databaseName: String): Array[String]
    Definition Classes
    SQLContext
  109. def tableNames(): Array[String]
    Definition Classes
    SQLContext
  110. def tables(databaseName: String): classic.DataFrame
    Definition Classes
    SQLContext → SQLContext
  111. def tables(): classic.DataFrame
    Definition Classes
    SQLContext → SQLContext
  112. def toString(): String
    Definition Classes
    AnyRef → Any
  113. def udf: classic.UDFRegistration
    Definition Classes
    SQLContext → SQLContext
  114. def uncacheTable(tableName: String): Unit
    Definition Classes
    SQLContext
  115. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  116. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  117. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  118. def withLogContext(context: Map[String, String])(body: => Unit): Unit
    Attributes
    protected
    Definition Classes
    Logging

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from classic.SQLContext

Inherited from SQLContext

Inherited from Serializable

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped