o

org.apache.spark.sql.catalyst.util

CharVarcharUtils

object CharVarcharUtils extends Logging

Linear Supertypes
Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CharVarcharUtils
  2. Logging
  3. AnyRef
  4. 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 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.

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

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

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def failIfHasCharVarchar(dt: DataType): DataType

    Validate the given DataType to fail if it is char or varchar types or contains nested ones

  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getRawSchema(schema: StructType): StructType

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

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

  15. def getRawTypeString(metadata: Metadata): Option[String]
  16. def hasCharVarchar(dt: DataType): Boolean

    Returns true if the given data type is CharType/VarcharType or has nested CharType/VarcharType.

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

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

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

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

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

  41. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  42. def toString(): String
    Definition Classes
    AnyRef → Any
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped