Packages

case class GpuCast(child: Expression, dataType: DataType, ansiMode: Boolean = false, timeZoneId: Option[String] = None, legacyCastToString: Boolean = false) extends GpuUnaryExpression with TimeZoneAwareExpression with NullIntolerant with Product with Serializable

Casts using the GPU

Linear Supertypes
Serializable, Serializable, NullIntolerant, TimeZoneAwareExpression, GpuUnaryExpression, GpuExpression, Arm, UnaryExpression, Expression, TreeNode[Expression], Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GpuCast
  2. Serializable
  3. Serializable
  4. NullIntolerant
  5. TimeZoneAwareExpression
  6. GpuUnaryExpression
  7. GpuExpression
  8. Arm
  9. UnaryExpression
  10. Expression
  11. TreeNode
  12. Product
  13. Equals
  14. AnyRef
  15. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GpuCast(child: Expression, dataType: DataType, ansiMode: Boolean = false, timeZoneId: Option[String] = None, legacyCastToString: Boolean = false)

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. val ansiMode: Boolean
  5. def apply(number: Int): TreeNode[_]
    Definition Classes
    TreeNode
  6. def argString(maxFields: Int): String
    Definition Classes
    TreeNode
  7. def asCode: String
    Definition Classes
    TreeNode
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. lazy val canonicalized: Expression
    Definition Classes
    GpuExpression → Expression
  10. def castStringToFloats(input: ColumnVector, ansiEnabled: Boolean, dType: DType): ColumnVector
  11. def castStringToInts(input: ColumnVector, ansiEnabled: Boolean, dType: DType): ColumnVector
  12. def checkForOverflow(input: ColumnVector, to: DecimalType, isFrom32Bit: Boolean): ColumnVector
  13. def checkInputDataTypes(): TypeCheckResult
    Definition Classes
    GpuCast → Expression
  14. val child: Expression
    Definition Classes
    GpuCast → UnaryExpression
  15. final def children: Seq[Expression]
    Definition Classes
    UnaryExpression → TreeNode
  16. def childrenResolved: Boolean
    Definition Classes
    Expression
  17. def clone(): Expression
    Definition Classes
    TreeNode → AnyRef
  18. def closeOnExcept[T <: AutoCloseable, V](r: ArrayBuffer[T])(block: (ArrayBuffer[T]) ⇒ V): V

    Executes the provided code block, closing the resources only if an exception occurs

    Executes the provided code block, closing the resources only if an exception occurs

    Definition Classes
    Arm
  19. def closeOnExcept[T <: AutoCloseable, V](r: Array[T])(block: (Array[T]) ⇒ V): V

    Executes the provided code block, closing the resources only if an exception occurs

    Executes the provided code block, closing the resources only if an exception occurs

    Definition Classes
    Arm
  20. def closeOnExcept[T <: AutoCloseable, V](r: Seq[T])(block: (Seq[T]) ⇒ V): V

    Executes the provided code block, closing the resources only if an exception occurs

    Executes the provided code block, closing the resources only if an exception occurs

    Definition Classes
    Arm
  21. def closeOnExcept[T <: AutoCloseable, V](r: T)(block: (T) ⇒ V): V

    Executes the provided code block, closing the resource only if an exception occurs

    Executes the provided code block, closing the resource only if an exception occurs

    Definition Classes
    Arm
  22. def collect[B](pf: PartialFunction[Expression, B]): Seq[B]
    Definition Classes
    TreeNode
  23. def collectFirst[B](pf: PartialFunction[Expression, B]): Option[B]
    Definition Classes
    TreeNode
  24. def collectLeaves(): Seq[Expression]
    Definition Classes
    TreeNode
  25. def columnarEval(batch: ColumnarBatch): Any

    Returns the result of evaluating this expression on the entire ColumnarBatch.

    Returns the result of evaluating this expression on the entire ColumnarBatch. The result of calling this may be a single GpuColumnVector or a scalar value. Scalar values typically happen if they are a part of the expression i.e. col("a") + 100. In this case the 100 is a literal that Add would have to be able to handle.

    By convention any GpuColumnVector returned by columnarEval is owned by the caller and will need to be closed by them. This can happen by putting it into a ColumnarBatch and closing the batch or by closing the vector directly if it is a temporary value.

    Definition Classes
    GpuUnaryExpressionGpuExpression
  26. lazy val containsChild: Set[TreeNode[_]]
    Definition Classes
    TreeNode
  27. def convertFixedLenDateOr(input: ColumnVector, len: Int, cudfFormat: String, orElse: ColumnVector): ColumnVector

    Parse dates that match the provided length and format.

    Parse dates that match the provided length and format. This method does not close the input ColumnVector.

    input

    Input ColumnVector

    len

    The string length to match against

    cudfFormat

    The cuDF timestamp format to match against

    returns

    ColumnVector containing timestamps for input entries that match both the length and format, and null for other entries

  28. def convertFixedLenDateOrNull(input: ColumnVector, len: Int, cudfFormat: String): ColumnVector

    Parse dates that match the provided length and format.

    Parse dates that match the provided length and format. This method does not close the input ColumnVector.

    input

    Input ColumnVector

    len

    The string length to match against

    cudfFormat

    The cuDF timestamp format to match against

    returns

    ColumnVector containing timestamps for input entries that match both the length and format, and null for other entries

  29. def convertVarLenDateOr(input: ColumnVector, regex: String, cudfFormat: String, orElse: ColumnVector): ColumnVector

    This method does not close the input ColumnVector.

  30. def copyTagsFrom(other: Expression): Unit
    Attributes
    protected
    Definition Classes
    TreeNode
  31. val dataType: DataType
    Definition Classes
    GpuCast → Expression
  32. def defineCodeGen(ctx: CodegenContext, ev: ExprCode, f: (String) ⇒ String): ExprCode
    Attributes
    protected
    Definition Classes
    UnaryExpression
  33. lazy val deterministic: Boolean
    Definition Classes
    Expression
  34. def disableCoalesceUntilInput(): Boolean

    Override this if your expression cannot allow combining of data from multiple files into a single batch before it operates on them.

    Override this if your expression cannot allow combining of data from multiple files into a single batch before it operates on them. These are for things like getting the input file name. Which for spark is stored in a thread local variable which means we have to jump through some hoops to make this work.

    Definition Classes
    GpuExpression
  35. def doColumnar(input: GpuColumnVector): ColumnVector
    Definition Classes
    GpuCastGpuUnaryExpression
  36. final def doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode
    Attributes
    protected
    Definition Classes
    GpuExpression → Expression
  37. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. final def eval(input: InternalRow = null): Any
    Definition Classes
    GpuExpression → Expression
  39. def fastEquals(other: TreeNode[_]): Boolean
    Definition Classes
    TreeNode
  40. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  41. def find(f: (Expression) ⇒ Boolean): Option[Expression]
    Definition Classes
    TreeNode
  42. def flatArguments: Iterator[Any]
    Attributes
    protected
    Definition Classes
    Expression
  43. def flatMap[A](f: (Expression) ⇒ TraversableOnce[A]): Seq[A]
    Definition Classes
    TreeNode
  44. def foldable: Boolean
    Definition Classes
    UnaryExpression → Expression
  45. def foreach(f: (Expression) ⇒ Unit): Unit
    Definition Classes
    TreeNode
  46. def foreachUp(f: (Expression) ⇒ Unit): Unit
    Definition Classes
    TreeNode
  47. def freeOnExcept[T <: RapidsBuffer, V](r: T)(block: (T) ⇒ V): V

    Executes the provided code block, freeing the RapidsBuffer only if an exception occurs

    Executes the provided code block, freeing the RapidsBuffer only if an exception occurs

    Definition Classes
    Arm
  48. def genCode(ctx: CodegenContext): ExprCode
    Definition Classes
    Expression
  49. def generateTreeString(depth: Int, lastChildren: Seq[Boolean], append: (String) ⇒ Unit, verbose: Boolean, prefix: String, addSuffix: Boolean, maxFields: Int, printNodeId: Boolean): Unit
    Definition Classes
    TreeNode
  50. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  51. def getTagValue[T](tag: TreeNodeTag[T]): Option[T]
    Definition Classes
    TreeNode
  52. def hashCode(): Int
    Definition Classes
    TreeNode → AnyRef → Any
  53. def innerChildren: Seq[TreeNode[_]]
    Definition Classes
    TreeNode
  54. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  55. def jsonFields: List[JField]
    Attributes
    protected
    Definition Classes
    TreeNode
  56. val legacyCastToString: Boolean
  57. def makeCopy(newArgs: Array[AnyRef]): Expression
    Definition Classes
    TreeNode
  58. def map[A](f: (Expression) ⇒ A): Seq[A]
    Definition Classes
    TreeNode
  59. def mapChildren(f: (Expression) ⇒ Expression): Expression
    Definition Classes
    TreeNode
  60. def mapProductIterator[B](f: (Any) ⇒ B)(implicit arg0: ClassTag[B]): Array[B]
    Attributes
    protected
    Definition Classes
    TreeNode
  61. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  62. def nodeName: String
    Definition Classes
    TreeNode
  63. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  64. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  65. def nullSafeCodeGen(ctx: CodegenContext, ev: ExprCode, f: (String) ⇒ String): ExprCode
    Attributes
    protected
    Definition Classes
    UnaryExpression
  66. def nullSafeEval(input: Any): Any
    Attributes
    protected
    Definition Classes
    UnaryExpression
  67. def nullable: Boolean
    Definition Classes
    GpuCast → UnaryExpression → Expression
  68. def numberedTreeString: String
    Definition Classes
    TreeNode
  69. val origin: Origin
    Definition Classes
    TreeNode
  70. def otherCopyArgs: Seq[AnyRef]
    Attributes
    protected
    Definition Classes
    TreeNode
  71. def outputTypeOverride: DType
    Definition Classes
    GpuUnaryExpression
  72. def p(number: Int): Expression
    Definition Classes
    TreeNode
  73. def prettyJson: String
    Definition Classes
    TreeNode
  74. def prettyName: String
    Definition Classes
    Expression
  75. def references: AttributeSet
    Definition Classes
    Expression
  76. lazy val resolved: Boolean
    Definition Classes
    GpuCast → TimeZoneAwareExpression → Expression
  77. def semanticEquals(other: Expression): Boolean

    Under certain conditions during hash partitioning, Spark will attempt to replace casts with semantically equivalent expressions.

    Under certain conditions during hash partitioning, Spark will attempt to replace casts with semantically equivalent expressions. This method is overridden to prevent Spark from substituting non-GPU expressions.

    Definition Classes
    GpuCast → Expression
  78. def semanticHash(): Int
    Definition Classes
    Expression
  79. def setTagValue[T](tag: TreeNodeTag[T], value: T): Unit
    Definition Classes
    TreeNode
  80. def simpleString(maxFields: Int): String
    Definition Classes
    Expression → TreeNode
  81. def simpleStringWithNodeId(): String
    Definition Classes
    Expression → TreeNode
  82. def specialDateOr(input: ColumnVector, special: String, value: Int, orColumnVector: ColumnVector): ColumnVector

    Replace special date strings such as "now" with timestampDays.

    Replace special date strings such as "now" with timestampDays. This method does not close the input ColumnVector.

  83. def sql: String
    Definition Classes
    GpuCast → Expression
  84. def stringArgs: Iterator[Any]
    Attributes
    protected
    Definition Classes
    TreeNode
  85. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  86. val timeZoneId: Option[String]
    Definition Classes
    GpuCast → TimeZoneAwareExpression
  87. def toJSON: String
    Definition Classes
    TreeNode
  88. def toString(): String
    Definition Classes
    GpuCast → Expression → TreeNode → AnyRef → Any
  89. def transform(rule: PartialFunction[Expression, Expression]): Expression
    Definition Classes
    TreeNode
  90. def transformDown(rule: PartialFunction[Expression, Expression]): Expression
    Definition Classes
    TreeNode
  91. def transformUp(rule: PartialFunction[Expression, Expression]): Expression
    Definition Classes
    TreeNode
  92. def treeString(append: (String) ⇒ Unit, verbose: Boolean, addSuffix: Boolean, maxFields: Int, printOperatorId: Boolean): Unit
    Definition Classes
    TreeNode
  93. final def treeString(verbose: Boolean, addSuffix: Boolean, maxFields: Int, printOperatorId: Boolean): String
    Definition Classes
    TreeNode
  94. final def treeString: String
    Definition Classes
    TreeNode
  95. def unsetTagValue[T](tag: TreeNodeTag[T]): Unit
    Definition Classes
    TreeNode
  96. final def verboseString(maxFields: Int): String
    Definition Classes
    Expression → TreeNode
  97. def verboseStringWithSuffix(maxFields: Int): String
    Definition Classes
    TreeNode
  98. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  99. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  100. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  101. def withNewChildren(newChildren: Seq[Expression]): Expression
    Definition Classes
    TreeNode
  102. def withResource[T <: AutoCloseable, V](r: ArrayBuffer[T])(block: (ArrayBuffer[T]) ⇒ V): V

    Executes the provided code block and then closes the array buffer of resources

    Executes the provided code block and then closes the array buffer of resources

    Definition Classes
    Arm
  103. def withResource[T <: AutoCloseable, V](r: Array[T])(block: (Array[T]) ⇒ V): V

    Executes the provided code block and then closes the array of resources

    Executes the provided code block and then closes the array of resources

    Definition Classes
    Arm
  104. def withResource[T <: AutoCloseable, V](r: Seq[T])(block: (Seq[T]) ⇒ V): V

    Executes the provided code block and then closes the sequence of resources

    Executes the provided code block and then closes the sequence of resources

    Definition Classes
    Arm
  105. def withResource[T <: AutoCloseable, V](r: Option[T])(block: (Option[T]) ⇒ V): V

    Executes the provided code block and then closes the Option[resource]

    Executes the provided code block and then closes the Option[resource]

    Definition Classes
    Arm
  106. def withResource[T <: AutoCloseable, V](r: T)(block: (T) ⇒ V): V

    Executes the provided code block and then closes the resource

    Executes the provided code block and then closes the resource

    Definition Classes
    Arm
  107. def withResourceIfAllowed[T, V](r: T)(block: (T) ⇒ V): V

    Executes the provided code block and then closes the value if it is AutoCloseable

    Executes the provided code block and then closes the value if it is AutoCloseable

    Definition Classes
    Arm
  108. def withTimeZone(timeZoneId: String): TimeZoneAwareExpression
    Definition Classes
    GpuCast → TimeZoneAwareExpression
  109. lazy val zoneId: ZoneId
    Definition Classes
    TimeZoneAwareExpression
    Annotations
    @transient()

Inherited from Serializable

Inherited from Serializable

Inherited from NullIntolerant

Inherited from TimeZoneAwareExpression

Inherited from GpuUnaryExpression

Inherited from GpuExpression

Inherited from Arm

Inherited from UnaryExpression

Inherited from Expression

Inherited from TreeNode[Expression]

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped