org.apache.spark.sql.hive.execution

InsertIntoHiveTable

case class InsertIntoHiveTable(table: MetastoreRelation, partition: Map[String, Option[String]], child: SparkPlan, overwrite: Boolean)(sc: HiveContext) extends SparkPlan with UnaryNode with Command with HiveInspectors with Product with Serializable

:: DeveloperApi ::

Annotations
@DeveloperApi()
Linear Supertypes
Product, Equals, HiveInspectors, Command, UnaryNode, UnaryNode[SparkPlan], SparkPlan, Serializable, Serializable, Logging, QueryPlan[SparkPlan], TreeNode[SparkPlan], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. InsertIntoHiveTable
  2. Product
  3. Equals
  4. HiveInspectors
  5. Command
  6. UnaryNode
  7. UnaryNode
  8. SparkPlan
  9. Serializable
  10. Serializable
  11. Logging
  12. QueryPlan
  13. TreeNode
  14. AnyRef
  15. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InsertIntoHiveTable(table: MetastoreRelation, partition: Map[String, Option[String]], child: SparkPlan, overwrite: Boolean)(sc: HiveContext)

Type Members

  1. implicit class typeInfoConversions extends AnyRef

    Definition Classes
    HiveInspectors

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 apply(number: Int): SparkPlan

    Definition Classes
    TreeNode
  5. def argString: String

    Definition Classes
    TreeNode
  6. def asCode: String

    Definition Classes
    TreeNode
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val child: SparkPlan

    Definition Classes
    InsertIntoHiveTable → UnaryNode
  9. def children: List[SparkPlan]

    Definition Classes
    UnaryNode
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val codegenEnabled: Boolean

    Definition Classes
    SparkPlan
  12. def collect[B](pf: PartialFunction[SparkPlan, B]): Seq[B]

    Definition Classes
    TreeNode
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def execute(): RDD[catalyst.expressions.Row]

    Definition Classes
    Command
  15. def executeCollect(): Array[catalyst.expressions.Row]

    Definition Classes
    Command
  16. def expressions: Seq[Expression]

    Definition Classes
    QueryPlan
  17. def fastEquals(other: TreeNode[_]): Boolean

    Definition Classes
    TreeNode
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def flatMap[A](f: (SparkPlan) ⇒ TraversableOnce[A]): Seq[A]

    Definition Classes
    TreeNode
  20. def foreach(f: (SparkPlan) ⇒ Unit): Unit

    Definition Classes
    TreeNode
  21. def generateTreeString(depth: Int, builder: StringBuilder): StringBuilder

    Attributes
    protected
    Definition Classes
    TreeNode
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def getNodeNumbered(number: MutableInt): SparkPlan

    Attributes
    protected
    Definition Classes
    TreeNode
  24. def inputSet: AttributeSet

    Definition Classes
    QueryPlan
  25. def inspectorToDataType(inspector: ObjectInspector): catalyst.types.DataType

    Definition Classes
    HiveInspectors
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  28. def javaClassToDataType(clz: Class[_]): catalyst.types.DataType

    Definition Classes
    HiveInspectors
  29. def log: Logger

    Attributes
    protected
    Definition Classes
    Logging
  30. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  31. def logDebug(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  32. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  33. def logError(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  34. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  35. def logInfo(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  36. def logName: String

    Attributes
    protected
    Definition Classes
    Logging
  37. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  38. def logTrace(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  39. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  40. def logWarning(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  41. def makeCopy(newArgs: Array[AnyRef]): InsertIntoHiveTable.this.type

    Definition Classes
    SparkPlan → TreeNode
  42. def map[A](f: (SparkPlan) ⇒ A): Seq[A]

    Definition Classes
    TreeNode
  43. def mapChildren(f: (SparkPlan) ⇒ SparkPlan): InsertIntoHiveTable.this.type

    Definition Classes
    TreeNode
  44. def missingInput: AttributeSet

    Definition Classes
    QueryPlan
  45. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  46. def newMutableProjection(expressions: Seq[Expression], inputSchema: Seq[Attribute]): () ⇒ MutableProjection

    Attributes
    protected
    Definition Classes
    SparkPlan
  47. def newOrdering(order: Seq[SortOrder], inputSchema: Seq[Attribute]): Ordering[catalyst.expressions.Row]

    Attributes
    protected
    Definition Classes
    SparkPlan
  48. def newPredicate(expression: Expression, inputSchema: Seq[Attribute]): (catalyst.expressions.Row) ⇒ Boolean

    Attributes
    protected
    Definition Classes
    SparkPlan
  49. def newProjection(expressions: Seq[Expression], inputSchema: Seq[Attribute]): Projection

    Attributes
    protected
    Definition Classes
    SparkPlan
  50. def nodeName: String

    Definition Classes
    TreeNode
  51. final def notify(): Unit

    Definition Classes
    AnyRef
  52. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  53. def numberedTreeString: String

    Definition Classes
    TreeNode
  54. def otherCopyArgs: List[HiveContext]

    Definition Classes
    InsertIntoHiveTable → TreeNode
  55. def output: Seq[Attribute]

    Definition Classes
    InsertIntoHiveTable → QueryPlan
  56. lazy val outputClass: Class[_ <: Writable]

  57. def outputPartitioning: Partitioning

    Definition Classes
    UnaryNode → SparkPlan
  58. def outputSet: AttributeSet

    Definition Classes
    QueryPlan
  59. val overwrite: Boolean

  60. val partition: Map[String, Option[String]]

  61. def printSchema(): Unit

    Definition Classes
    QueryPlan
  62. def references: AttributeSet

    Definition Classes
    QueryPlan
  63. def requiredChildDistribution: Seq[Distribution]

    Definition Classes
    SparkPlan
  64. def saveAsHiveFile(rdd: RDD[catalyst.expressions.Row], valueClass: Class[_], fileSinkConf: ShimFileSinkDesc, conf: SerializableWritable[JobConf], writerContainer: SparkHiveWriterContainer): Unit

  65. def schema: catalyst.types.StructType

    Definition Classes
    QueryPlan
  66. def schemaString: String

    Definition Classes
    QueryPlan
  67. lazy val sideEffectResult: Seq[catalyst.expressions.Row]

    Inserts all the rows in the table into Hive.

    Inserts all the rows in the table into Hive. Row objects are properly serialized with the org.apache.hadoop.hive.serde2.SerDe and the org.apache.hadoop.mapred.OutputFormat provided by the table definition.

    Note: this is run once and then kept to avoid double insertions.

    Attributes
    protected[org.apache.spark.sql]
    Definition Classes
    InsertIntoHiveTable → Command
  68. def simpleString: String

    Definition Classes
    QueryPlan → TreeNode
  69. def sparkContext: SparkContext

    Attributes
    protected
    Definition Classes
    SparkPlan
  70. val sqlContext: SQLContext

    Attributes
    protected[org.apache.spark]
    Definition Classes
    SparkPlan
  71. def statePrefix: String

    Attributes
    protected
    Definition Classes
    QueryPlan
  72. def stringArgs: Iterator[Any]

    Attributes
    protected
    Definition Classes
    TreeNode
  73. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  74. val table: MetastoreRelation

  75. def toInspector(expr: Expression): ObjectInspector

    Definition Classes
    HiveInspectors
  76. def toInspector(dataType: catalyst.types.DataType): ObjectInspector

    Definition Classes
    HiveInspectors
  77. def toString(): String

    Definition Classes
    TreeNode → AnyRef → Any
  78. def transform(rule: PartialFunction[SparkPlan, SparkPlan]): SparkPlan

    Definition Classes
    TreeNode
  79. def transformAllExpressions(rule: PartialFunction[Expression, Expression]): InsertIntoHiveTable.this.type

    Definition Classes
    QueryPlan
  80. def transformChildrenDown(rule: PartialFunction[SparkPlan, SparkPlan]): InsertIntoHiveTable.this.type

    Definition Classes
    TreeNode
  81. def transformChildrenUp(rule: PartialFunction[SparkPlan, SparkPlan]): InsertIntoHiveTable.this.type

    Definition Classes
    TreeNode
  82. def transformDown(rule: PartialFunction[SparkPlan, SparkPlan]): SparkPlan

    Definition Classes
    TreeNode
  83. def transformExpressions(rule: PartialFunction[Expression, Expression]): InsertIntoHiveTable.this.type

    Definition Classes
    QueryPlan
  84. def transformExpressionsDown(rule: PartialFunction[Expression, Expression]): InsertIntoHiveTable.this.type

    Definition Classes
    QueryPlan
  85. def transformExpressionsUp(rule: PartialFunction[Expression, Expression]): InsertIntoHiveTable.this.type

    Definition Classes
    QueryPlan
  86. def transformUp(rule: PartialFunction[SparkPlan, SparkPlan]): SparkPlan

    Definition Classes
    TreeNode
  87. def treeString: String

    Definition Classes
    TreeNode
  88. def unwrap(data: Any, oi: ObjectInspector): Any

    Converts hive types to native catalyst types.

    Converts hive types to native catalyst types.

    data

    the data in Hive type

    oi

    the ObjectInspector associated with the Hive Type

    returns

    convert the data into catalyst type TODO return the function of (data => Any) instead for performance consideration

    Definition Classes
    HiveInspectors
  89. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  90. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  91. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. def withNewChildren(newChildren: Seq[SparkPlan]): InsertIntoHiveTable.this.type

    Definition Classes
    TreeNode
  93. def wrap(row: Seq[Any], inspectors: Seq[ObjectInspector], cache: Array[AnyRef]): Array[AnyRef]

    Definition Classes
    HiveInspectors
  94. def wrap(a: Any, oi: ObjectInspector): AnyRef

    Converts native catalyst types to the types expected by Hive

    Converts native catalyst types to the types expected by Hive

    a

    the value to be wrapped

    oi

    This ObjectInspector associated with the value returned by this function, and the ObjectInspector should also be consistent with those returned from toInspector: DataType => ObjectInspector and toInspector: Expression => ObjectInspector

    Definition Classes
    HiveInspectors
  95. def wrapperFor(oi: ObjectInspector): (Any) ⇒ Any

    Wraps with Hive types based on object inspector.

    Wraps with Hive types based on object inspector. TODO: Consolidate all hive OI/data interface code.

    Attributes
    protected
    Definition Classes
    HiveInspectors

Inherited from Product

Inherited from Equals

Inherited from HiveInspectors

Inherited from Command

Inherited from UnaryNode

Inherited from UnaryNode[SparkPlan]

Inherited from SparkPlan

Inherited from Serializable

Inherited from Serializable

Inherited from Logging

Inherited from QueryPlan[SparkPlan]

Inherited from TreeNode[SparkPlan]

Inherited from AnyRef

Inherited from Any

Ungrouped