Packages

o

com.nvidia.spark.rapids

ColumnCastUtil

object ColumnCastUtil

This class casts a column to another column if the predicate passed resolves to true. This method should be able to handle nested or non-nested types

At this time this is strictly a place for casting methods

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

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def deepTransform(cv: ColumnVector, dt: Option[DataType] = None, nestedMismatchHandler: Option[(ColumnView, DataType) ⇒ (Option[ColumnView], Seq[AutoCloseable])] = None)(convert: PartialFunction[(ColumnView, Option[DataType]), ColumnView]): ColumnVector

    Transforms a ColumnVector into a new ColumnVector using a PartialFunction.

    Transforms a ColumnVector into a new ColumnVector using a PartialFunction. If the partial function matches it is assumed that this takes ownership of the returned view. A lot of caution needs to be taken when using this method because of ownership of the data.

    cv

    the vector to be updated

    dt

    the Spark's data type of the input vector (if applicable)

    nestedMismatchHandler

    a function that can handle a mismatch between nesting. This can include things like when a STRING is found, but a nested type is needed, or when a nested value is returned by CUDF but a non-nested type is expected.

    convert

    the partial function used to convert the data. If this matches and returns a updated view this function takes ownership of that view.

    returns

    the updated vector

  7. def deepTransformView(cv: ColumnView, dt: Option[DataType] = None, nestedMismatchHandler: Option[(ColumnView, DataType) ⇒ (Option[ColumnView], Seq[AutoCloseable])] = None)(convert: PartialFunction[(ColumnView, Option[DataType]), ColumnView]): (Option[ColumnView], Seq[AutoCloseable])

    Transforms a ColumnView into a new ColumnView using a PartialFunction or returns None indicating that no transformation happened (nothing matched).

    Transforms a ColumnView into a new ColumnView using a PartialFunction or returns None indicating that no transformation happened (nothing matched). If the partial function matches it is assumed that this takes ownership of the returned view. A lot of caution needs to be taken when using this method because of ownership of the data. This will handle reference counting and return not just the updated ColumnView but also any views and or data that were generated along the way and need to be closed. This includes the returned view itself. So you should not explicitly close the returned view. It will be closed by closing everything in the returned collection of AutoCloseable values.

    cv

    the view to be updated

    dt

    the Spark's data type of the input view (if applicable)

    nestedMismatchHandler

    a function that can handle a mismatch between nesting. This can include things like when a STRING is found, but a nested type is needed, or when a nested value is returned by CUDF but a non-nested type is expected.

    convert

    the partial function used to convert the data. If this matches and returns a updated view this function takes ownership of that view.

    returns

    None if there were no changes to the view or the updated view along with anything else that needs to be closed.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def ifTrueThenDeepConvertTypeAtoTypeB(cv: ColumnVector, dataType: DataType, predicate: (DataType, ColumnView) ⇒ Boolean, convert: (DataType, ColumnView) ⇒ ColumnView): ColumnVector

    This method deep casts the input ColumnView to a new column if the predicate passed to this method resolves to true.

    This method deep casts the input ColumnView to a new column if the predicate passed to this method resolves to true. Note: This method will also cast children of nested types to the given type if predicate succeeds

    cv

    The column view that could potentially have a type to replace

    predicate

    Condition on which to cast the column or child column view

    convert

    Method used to convert the column view to a new column view

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped