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

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