Packages

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

Type Members

  1. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging

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], alwaysPad: Boolean): 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(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def failIfHasCharVarchar(dt: DataType): DataType
    Definition Classes
    SparkCharVarcharUtils
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. def getRawSchema(schema: StructType, conf: SQLConf): StructType
  14. def getRawSchema(schema: StructType): StructType

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

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

  16. def getRawTypeString(metadata: Metadata): Option[String]
  17. def hasCharVarchar(dt: DataType): Boolean
    Definition Classes
    SparkCharVarcharUtils
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  19. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  20. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  23. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  24. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  25. def logDebug(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  26. def logDebug(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  27. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  28. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  29. def logError(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def logError(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. def logInfo(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  34. def logInfo(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  35. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  36. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  37. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  38. def logTrace(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  39. def logTrace(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  40. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  41. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  42. def logWarning(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  43. def logWarning(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  44. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  45. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  46. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  47. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  48. def replaceCharVarcharWithString(dt: DataType): DataType
    Definition Classes
    SparkCharVarcharUtils
  49. 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

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

  51. def replaceCharWithVarchar(dt: DataType): DataType

    Replaces CharType with VarcharType recursively in the given data type.

  52. def stringLengthCheck(expr: Expression, dt: DataType): Expression
  53. 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.

  54. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  55. def toString(): String
    Definition Classes
    AnyRef → Any
  56. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  57. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  58. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  59. def withLogContext(context: Map[String, String])(body: => Unit): Unit
    Attributes
    protected
    Definition Classes
    Logging

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from SparkCharVarcharUtils

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped