Class

com.nvidia.spark.rapids

CastExprMeta

Related Doc: package rapids

Permalink

final class CastExprMeta[INPUT <: Cast] extends UnaryExprMeta[INPUT]

Meta-data for cast and ansi_cast.

Linear Supertypes
UnaryExprMeta[INPUT], ExprMeta[INPUT], BaseExprMeta[INPUT], RapidsMeta[INPUT, Expression], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CastExprMeta
  2. UnaryExprMeta
  3. ExprMeta
  4. BaseExprMeta
  5. RapidsMeta
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CastExprMeta(cast: INPUT, ansiEnabled: Boolean, conf: RapidsConf, parent: Option[RapidsMeta[_, _]], rule: DataFromReplacementRule, doFloatToIntCheck: Boolean, stringToAnsiDate: Boolean, toTypeOverride: Option[DataType] = None)

    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 addConvertedDataType(expression: Expression, typeMeta: DataTypeMeta): Unit

    Permalink

    Call this method to record information about type conversions via DataTypeMeta.

    Call this method to record information about type conversions via DataTypeMeta.

    Definition Classes
    RapidsMeta
  5. val ansiEnabled: Boolean

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def buildTagMessage(entry: ConfEntry[_]): String

    Permalink
  8. def canDataWriteCmdsBeReplaced: Boolean

    Permalink

    Returns true iff all of the data writing commands can be replaced.

    Returns true iff all of the data writing commands can be replaced.

    Definition Classes
    RapidsMeta
  9. def canExprTreeBeReplaced: Boolean

    Permalink

    Returns true iff all of the expressions and their children could be replaced.

    Returns true iff all of the expressions and their children could be replaced.

    Definition Classes
    BaseExprMetaRapidsMeta
  10. def canPartsBeReplaced: Boolean

    Permalink

    Returns true iff all of the partitioning can be replaced.

    Returns true iff all of the partitioning can be replaced.

    Definition Classes
    RapidsMeta
  11. final def canThisBeAst: Boolean

    Permalink
    Definition Classes
    BaseExprMeta
  12. final def canThisBeReplaced: Boolean

    Permalink

    Returns true iff this could be replaced.

    Returns true iff this could be replaced.

    Definition Classes
    RapidsMeta
  13. var cannotBeReplacedReasons: Option[Set[String]]

    Permalink
    Attributes
    protected
    Definition Classes
    RapidsMeta
  14. var cannotRunOnGpuBecauseOfCost: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    RapidsMeta
  15. var cannotRunOnGpuBecauseOfSparkPlan: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    RapidsMeta
  16. def checkTimeZoneId(timeZoneId: Option[String]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    RapidsMeta
  17. val childDataWriteCmds: Seq[DataWritingCommandMeta[_]]

    Permalink

    The wrapped data writing commands that should be examined

    The wrapped data writing commands that should be examined

    Definition Classes
    BaseExprMetaRapidsMeta
  18. val childExprs: Seq[BaseExprMeta[_]]

    Permalink

    The wrapped expressions that should be examined

    The wrapped expressions that should be examined

    Definition Classes
    BaseExprMetaRapidsMeta
  19. val childParts: Seq[PartMeta[_]]

    Permalink

    The wrapped partitioning that should be examined

    The wrapped partitioning that should be examined

    Definition Classes
    BaseExprMetaRapidsMeta
  20. val childPlans: Seq[SparkPlanMeta[_]]

    Permalink

    The wrapped plans that should be examined

    The wrapped plans that should be examined

    Definition Classes
    BaseExprMetaRapidsMeta
  21. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. val conf: RapidsConf

    Permalink

    the config

    the config

    Definition Classes
    RapidsMeta
  23. def confKey: String

    Permalink
    Definition Classes
    RapidsMeta
  24. lazy val context: ExpressionContext

    Permalink
    Definition Classes
    BaseExprMeta
  25. def convertToCpu(): Expression

    Permalink

    Keep this on the CPU, but possibly convert its children under it to run on the GPU if enabled.

    Keep this on the CPU, but possibly convert its children under it to run on the GPU if enabled. By default this just returns what is wrapped by this. For some types of operators/stages, like SparkPlan, each part of the query can be converted independent of other parts. As such in a subclass this should be overridden to do the correct thing.

    Definition Classes
    RapidsMeta
  26. final def costPreventsRunningOnGpu(): Unit

    Permalink
    Definition Classes
    RapidsMeta
  27. def dataType: DataType

    Permalink
    Definition Classes
    BaseExprMeta
  28. final val disabledMsg: Option[String]

    Permalink
    Definition Classes
    RapidsMeta
  29. final def entirePlanExcludedReasons: Seq[String]

    Permalink

    Returns the list of reasons the entire plan can't be replaced.

    Returns the list of reasons the entire plan can't be replaced. An empty set means the entire plan is ok to be replaced, do the normal checking per exec and children.

    Definition Classes
    RapidsMeta
  30. final def entirePlanWillNotWork(because: String): Unit

    Permalink

    Call this if there is a condition found that the entire plan is not allowed to run on the GPU.

    Call this if there is a condition found that the entire plan is not allowed to run on the GPU.

    Definition Classes
    RapidsMeta
  31. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  33. def explain(all: Boolean): String

    Permalink
    Definition Classes
    RapidsMeta
  34. def explainAst(all: Boolean): String

    Permalink
    Definition Classes
    BaseExprMeta
  35. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. val fromType: DataType

    Permalink
  37. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  39. val ignoreUnsetDataTypes: Boolean

    Permalink
    Definition Classes
    BaseExprMeta
  40. final val incompatDoc: Option[String]

    Permalink
    Definition Classes
    RapidsMeta
  41. def indent(append: StringBuilder, depth: Int): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    RapidsMeta
  42. def initReasons(): Unit

    Permalink
    Definition Classes
    RapidsMeta
  43. final def inputFilePreventsRunningOnGpu(): Unit

    Permalink
    Definition Classes
    RapidsMeta
  44. def isDisabledByDefault: Boolean

    Permalink
    Definition Classes
    RapidsMeta
  45. val isFoldableNonLitAllowed: Boolean

    Permalink

    ConstantFolding executes early in the logical plan process, which simplifies many things before we get to the physical plan.

    ConstantFolding executes early in the logical plan process, which simplifies many things before we get to the physical plan. If you enable AQE, some optimizations can cause new expressions to show up that would have been folded in by the logical plan optimizer (like cast(null as bigint) which just becomes Literal(null, Long) after ConstantFolding), so enabling this here allows us to handle these when they are generated by an AQE rule.

    Definition Classes
    UnaryExprMetaBaseExprMeta
  46. def isIncompat: Boolean

    Permalink
    Definition Classes
    RapidsMeta
  47. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  48. val legacyCastToString: Boolean

    Permalink
  49. final def mustBeReplaced(because: String): Unit

    Permalink
    Definition Classes
    RapidsMeta
  50. final def mustThisBeReplaced: Boolean

    Permalink

    Returns true iff this must be replaced because its children have already been replaced and this needs to also be replaced for compatibility.

    Returns true iff this must be replaced because its children have already been replaced and this needs to also be replaced for compatibility.

    Definition Classes
    RapidsMeta
  51. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  52. def noReplacementPossibleMessage(reasons: String): String

    Permalink
    Definition Classes
    RapidsMeta
  53. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  55. final val operationName: String

    Permalink
    Definition Classes
    RapidsMeta
  56. def overrideDataType(dt: DataType): Unit

    Permalink

    Overrides the data type of the wrapped expression during type checking.

    Overrides the data type of the wrapped expression during type checking.

    NOTICE: This method will NOT modify the wrapped expression itself. Therefore, the actual transition on data type is still necessary when converting this expression to GPU.

    Definition Classes
    BaseExprMeta
  57. val parent: Option[RapidsMeta[_, _]]

    Permalink

    the parent of this node, if there is one.

    the parent of this node, if there is one.

    Definition Classes
    RapidsMeta
  58. def print(strBuilder: StringBuilder, depth: Int, all: Boolean): Unit

    Permalink

    Create a string representation of this in append.

    Create a string representation of this in append.

    strBuilder

    where to place the string representation.

    depth

    how far down the tree this is.

    all

    should all the data be printed or just what does not work on the GPU?

    Attributes
    protected
    Definition Classes
    RapidsMeta
  59. def printAst(strBuilder: StringBuilder, depth: Int, all: Boolean): Unit

    Permalink

    Create a string explanation for whether this expression tree can be converted to an AST

    Create a string explanation for whether this expression tree can be converted to an AST

    strBuilder

    where to place the string representation.

    depth

    how far down the tree this is.

    all

    should all the data be printed or just what does not work in the AST?

    Attributes
    protected
    Definition Classes
    BaseExprMeta
  60. val printWrapped: Boolean

    Permalink

    When converting this to a string should we include the string representation of what this wraps too? This is off by default.

    When converting this to a string should we include the string representation of what this wraps too? This is off by default.

    Definition Classes
    BaseExprMetaRapidsMeta
  61. final def recursiveCostPreventsRunningOnGpu(): Unit

    Permalink

    Recursively force a section of the plan back onto CPU, stopping once a plan is reached that is already on CPU.

    Recursively force a section of the plan back onto CPU, stopping once a plan is reached that is already on CPU.

    Definition Classes
    RapidsMeta
  62. final def recursiveSparkPlanPreventsRunningOnGpu(): Unit

    Permalink
    Definition Classes
    RapidsMeta
  63. final def recursiveSparkPlanRemoved(): Unit

    Permalink
    Definition Classes
    RapidsMeta
  64. def replaceMessage: String

    Permalink
    Definition Classes
    RapidsMeta
  65. final def requireAstForGpu(): Unit

    Permalink
    Definition Classes
    BaseExprMeta
  66. final def shouldBeRemoved(because: String): Unit

    Permalink
    Definition Classes
    RapidsMeta
  67. final def shouldThisBeRemoved: Boolean

    Permalink

    Returns true if this node should be removed.

    Returns true if this node should be removed.

    Definition Classes
    RapidsMeta
  68. def suppressWillWorkOnGpuInfo: Boolean

    Permalink
    Definition Classes
    RapidsMeta
  69. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  70. def tagExprForGpu(): Unit

    Permalink

    Called to verify that this expression will work on the GPU.

    Called to verify that this expression will work on the GPU. For most expressions without extra checks all of the checks should have already been done.

    Definition Classes
    CastExprMetaBaseExprMeta
  71. final def tagForGpu(): Unit

    Permalink

    Tag all of the children to see if they are GPU compatible first.

    Tag all of the children to see if they are GPU compatible first. Do basic common verification for the operators, and then call tagSelfForGpu

    Definition Classes
    RapidsMeta
  72. def tagSelfForAst(): Unit

    Permalink

    Called to verify that this expression will work as a GPU AST expression.

    Called to verify that this expression will work as a GPU AST expression.

    Attributes
    protected
    Definition Classes
    BaseExprMeta
  73. final def tagSelfForGpu(): Unit

    Permalink

    Do any extra checks and tag yourself if you are compatible or not.

    Do any extra checks and tag yourself if you are compatible or not. Be aware that this may already have been marked as incompatible for a number of reasons.

    All of your children should have already been tagged so if there are situations where you may need to disqualify your children for various reasons you may do it here too.

    Definition Classes
    BaseExprMetaRapidsMeta
  74. def toString(): String

    Permalink
    Definition Classes
    RapidsMeta → AnyRef → Any
  75. val toType: DataType

    Permalink
  76. def typeMeta: DataTypeMeta

    Permalink

    Gets the DataTypeMeta of current BaseExprMeta, which is supposed to be called in the tag methods of expression-level type checks.

    Gets the DataTypeMeta of current BaseExprMeta, which is supposed to be called in the tag methods of expression-level type checks.

    By default, it simply returns the data type of wrapped expression. But for specific expressions, they can easily override data type for type checking through calling the method overrideDataType.

    Definition Classes
    BaseExprMeta
  77. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. final def willNotWorkInAst(because: String): Unit

    Permalink
    Definition Classes
    BaseExprMeta
  81. final def willNotWorkOnGpu(because: String): Unit

    Permalink

    Call this to indicate that this should not be replaced with a GPU enabled version

    Call this to indicate that this should not be replaced with a GPU enabled version

    because

    why it should not be replaced.

    Definition Classes
    RapidsMeta
  82. def willWorkInAstInfo: String

    Permalink
    Attributes
    protected
    Definition Classes
    BaseExprMeta
  83. def withToTypeOverride(newToType: DecimalType): CastExprMeta[INPUT]

    Permalink
  84. val wrapped: INPUT

    Permalink

    what we are wrapping

    what we are wrapping

    Definition Classes
    RapidsMeta

Inherited from UnaryExprMeta[INPUT]

Inherited from ExprMeta[INPUT]

Inherited from BaseExprMeta[INPUT]

Inherited from RapidsMeta[INPUT, Expression]

Inherited from AnyRef

Inherited from Any

Ungrouped