o

org.apache.spark.sql.catalyst.util

CharVarcharUtils

object CharVarcharUtils extends Logging with SparkCharVarcharUtils

Linear Supertypes
SparkCharVarcharUtils, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CharVarcharUtils
  2. SparkCharVarcharUtils
  3. Logging
  4. AnyRef
  5. 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. def addPaddingForScan(attr: Attribute): Expression
  5. def addPaddingInStringComparison(attrs: Seq[Attribute]): Seq[Expression]

    Return expressions to apply char type padding for the string comparison between the given attributes.

    Return expressions to apply char type padding for the string comparison between the given attributes. When comparing two char type columns/fields, we need to pad the shorter one to the longer length.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def cleanAttrMetadata(attr: AttributeReference): AttributeReference

    Removes the metadata entry that contains the original type string of CharType/VarcharType from the given attribute's metadata.

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def failIfHasCharVarchar(dt: DataType): DataType
    Definition Classes
    SparkCharVarcharUtils
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getRawSchema(schema: StructType, conf: SQLConf): StructType
  15. def getRawSchema(schema: StructType): StructType

    Re-construct the original schema from the type string in the given metadata of each field.

  16. def getRawType(metadata: Metadata): Option[DataType]

    Re-construct the original data type from the type string in the given metadata.

    Re-construct the original data type from the type string in the given metadata. This is needed when dealing with char/varchar columns/fields.

  17. def getRawTypeString(metadata: Metadata): Option[String]
  18. def hasCharVarchar(dt: DataType): Boolean
    Definition Classes
    SparkCharVarcharUtils
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  21. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  24. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  25. def logDebug(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  26. def logDebug(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  27. def logError(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  28. def logError(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  29. def logInfo(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def logInfo(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  32. def logTrace(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. def logTrace(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  34. def logWarning(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  35. def logWarning(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. def replaceCharVarcharWithString(dt: DataType): DataType
    Definition Classes
    SparkCharVarcharUtils
  40. def replaceCharVarcharWithStringForCast(dt: DataType): DataType

    Replaces CharType/VarcharType with StringType recursively in the given data type, with a warning message if it has char or varchar types

  41. def replaceCharVarcharWithStringInSchema(st: StructType): StructType

    Replaces CharType/VarcharType with StringType recursively in the given struct type.

    Replaces CharType/VarcharType with StringType recursively in the given struct type. If a top-level StructField's data type is CharType/VarcharType or has nested CharType/VarcharType, this method will add the original type string to the StructField's metadata, so that we can re-construct the original data type with CharType/VarcharType later when needed.

  42. def replaceCharWithVarchar(dt: DataType): DataType

    Replaces CharType with VarcharType recursively in the given data type.

  43. def stringLengthCheck(expr: Expression, dt: DataType): Expression
  44. def stringLengthCheck(expr: Expression, targetAttr: Attribute): Expression

    Returns an expression to apply write-side string length check for the given expression.

    Returns an expression to apply write-side string length check for the given expression. A string value can not exceed N characters if it's written into a CHAR(N)/VARCHAR(N) column/field.

  45. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  46. def toString(): String
    Definition Classes
    AnyRef → Any
  47. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from SparkCharVarcharUtils

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped