Trait

org.apache.spark.sql.hive

Hive3Inspectors

Related Doc: package hive

Permalink

trait Hive3Inspectors extends AnyRef

This class is similar to org.apache.spark.sql.hive.HiveInspectors. Changes are made here to make it work with Hive3

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Hive3Inspectors
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class typeInfoConversions extends AnyRef

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. def inspectorToDataType(inspector: ObjectInspector): DataType

    Permalink
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. def javaTypeToDataType(clz: Type): DataType

    Permalink
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toCatalystDecimal(hdoi: HiveDecimalObjectInspector, data: Any): Decimal

    Permalink
  19. def toInspector(expr: Expression): ObjectInspector

    Permalink

    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).

  20. def toInspector(dataType: DataType): ObjectInspector

    Permalink

    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.

  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. def unwrapperFor(field: StructField): (Any, InternalRow, Int) ⇒ Unit

    Permalink

    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.

  23. def unwrapperFor(objectInspector: ObjectInspector): (Any) ⇒ Any

    Permalink

    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.

  24. final def wait(): Unit

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

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

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

    Permalink
  28. def wrap(row: InternalRow, wrappers: Array[(Any) ⇒ Any], cache: Array[AnyRef], dataTypes: Array[DataType]): Array[AnyRef]

    Permalink
  29. def wrap(a: Any, oi: ObjectInspector, dataType: DataType): AnyRef

    Permalink
  30. def wrapperFor(oi: ObjectInspector, dataType: DataType): (Any) ⇒ Any

    Permalink

    Wraps with Hive types based on object inspector.

    Wraps with Hive types based on object inspector.

    Attributes
    protected

Inherited from AnyRef

Inherited from Any

Ungrouped