org.apache.spark.sql.hive.execution

HiveScriptIOSchema

case class HiveScriptIOSchema(inputRowFormat: Seq[(String, String)], outputRowFormat: Seq[(String, String)], inputSerdeClass: Option[String], outputSerdeClass: Option[String], inputSerdeProps: Seq[(String, String)], outputSerdeProps: Seq[(String, String)], recordReaderClass: Option[String], recordWriterClass: Option[String], schemaLess: Boolean) extends HiveInspectors with Product with Serializable

The wrapper class of Hive input and output schema properties

Linear Supertypes
Serializable, Serializable, Product, Equals, HiveInspectors, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HiveScriptIOSchema
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HiveInspectors
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HiveScriptIOSchema(inputRowFormat: Seq[(String, String)], outputRowFormat: Seq[(String, String)], inputSerdeClass: Option[String], outputSerdeClass: Option[String], inputSerdeProps: Seq[(String, String)], outputSerdeProps: Seq[(String, String)], recordReaderClass: Option[String], recordWriterClass: Option[String], schemaLess: Boolean)

Type Members

  1. implicit class typeInfoConversions extends AnyRef

    Definition Classes
    HiveInspectors

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  11. def initInputSerDe(input: Seq[Expression]): Option[(AbstractSerDe, ObjectInspector)]

  12. def initOutputSerDe(output: Seq[Attribute]): Option[(AbstractSerDe, StructObjectInspector)]

  13. val inputRowFormat: Seq[(String, String)]

  14. val inputRowFormatMap: Map[String, String]

  15. val inputSerdeClass: Option[String]

  16. val inputSerdeProps: Seq[(String, String)]

  17. def inspectorToDataType(inspector: ObjectInspector): DataType

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

    Definition Classes
    Any
  19. def javaClassToDataType(clz: Class[_]): DataType

    Definition Classes
    HiveInspectors
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

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

    Definition Classes
    AnyRef
  23. val outputRowFormat: Seq[(String, String)]

  24. val outputRowFormatMap: Map[String, String]

  25. val outputSerdeClass: Option[String]

  26. val outputSerdeProps: Seq[(String, String)]

  27. def recordReader(inputStream: InputStream, conf: Configuration): Option[RecordReader]

  28. val recordReaderClass: Option[String]

  29. def recordWriter(outputStream: OutputStream, conf: Configuration): Option[RecordWriter]

  30. val recordWriterClass: Option[String]

  31. val schemaLess: Boolean

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toInspector(expr: Expression): ObjectInspector

    Map the catalyst expression to ObjectInspector, however, if the expression is Literal or foldable, a constant writable object inspector returns; Otherwise, we always get the object inspector according to its data type(in catalyst)

    Map the catalyst expression to ObjectInspector, however, if the expression is Literal or foldable, a constant writable object inspector returns; Otherwise, we always get the object inspector according to its data type(in catalyst)

    expr

    Catalyst expression to be mapped

    returns

    Hive java objectinspector (recursively).

    Definition Classes
    HiveInspectors
  34. def toInspector(dataType: DataType): ObjectInspector

    dataType

    Catalyst data type

    returns

    Hive java object inspector (recursively), not the Writable ObjectInspector We can easily map to the Hive built-in object inspector according to the data type.

    Definition Classes
    HiveInspectors
  35. def unwrapperFor(field: StructField): (Any, InternalRow, Int) ⇒ Unit

    Builds unwrappers ahead of time according to object inspector types to avoid pattern matching and branching costs per row.

    Builds unwrappers ahead of time according to object inspector types to avoid pattern matching and branching costs per row.

    field

    The HiveStructField to create an unwrapper for.

    returns

    A function that performs in-place updating of a MutableRow. Use the overloaded ObjectInspector version for assignments.

    Definition Classes
    HiveInspectors
  36. def unwrapperFor(objectInspector: ObjectInspector): (Any) ⇒ Any

    Builds unwrappers ahead of time according to object inspector types to avoid pattern matching and branching costs per row.

    Builds unwrappers ahead of time according to object inspector types to avoid pattern matching and branching costs per row.

    Strictly follows the following order in unwrapping (constant OI has the higher priority): Constant Null object inspector => return null Constant object inspector => extract the value from constant object inspector If object inspector prefers writable => extract writable from data and then get the catalyst type from the writable Extract the java object directly from the object inspector

    NOTICE: the complex data type requires recursive unwrapping.

    objectInspector

    the ObjectInspector used to create an unwrapper.

    returns

    A function that unwraps data objects. Use the overloaded HiveStructField version for in-place updating of a MutableRow.

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def wrap(row: Seq[Any], wrappers: Array[(Any) ⇒ Any], cache: Array[AnyRef], dataTypes: Array[DataType]): Array[AnyRef]

    Definition Classes
    HiveInspectors
  41. def wrap(row: InternalRow, wrappers: Array[(Any) ⇒ Any], cache: Array[AnyRef], dataTypes: Array[DataType]): Array[AnyRef]

    Definition Classes
    HiveInspectors
  42. def wrap(a: Any, oi: ObjectInspector, dataType: DataType): AnyRef

    Definition Classes
    HiveInspectors
  43. def wrapperFor(oi: ObjectInspector, dataType: DataType): (Any) ⇒ Any

    Wraps with Hive types based on object inspector.

    Wraps with Hive types based on object inspector.

    Attributes
    protected
    Definition Classes
    HiveInspectors

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HiveInspectors

Inherited from AnyRef

Inherited from Any

Ungrouped