Packages

object DataType

Annotations
@Stable()
Source
DataType.scala
Since

1.3.0

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DataType
  2. AnyRef
  3. 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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def buildFormattedString(dataType: DataType, prefix: String, stringConcat: StringConcat, maxDepth: Int): Unit
    Attributes
    protected[types]
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def equalsIgnoreCaseAndNullability(from: DataType, to: DataType): Boolean

    Compares two types, ignoring nullability of ArrayType, MapType, StructType, and ignoring case sensitivity of field names in StructType.

  10. def equalsIgnoreNullability(left: DataType, right: DataType): Boolean

    Compares two types, ignoring nullability of ArrayType, MapType, StructType.

  11. def equalsStructurally(from: DataType, to: DataType, ignoreNullability: Boolean = false): Boolean

    Returns true if the two data types share the same "shape", i.e.

    Returns true if the two data types share the same "shape", i.e. the types are the same, but the field names don't need to be the same.

    ignoreNullability

    whether to ignore nullability when comparing the types

  12. def equalsStructurallyByName(from: DataType, to: DataType, resolver: Resolver): Boolean

    Returns true if the two data types have the same field names in order recursively.

  13. def fromDDL(ddl: String): DataType
  14. def fromJson(json: String): DataType
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  21. def parseTypeWithFallback(schema: String, parser: (String) ⇒ DataType, fallbackParser: (String) ⇒ DataType): DataType

    Parses data type from a string with schema.

    Parses data type from a string with schema. It calls parser for schema. If it fails, calls fallbackParser. If the fallback function fails too, combines error message from parser and fallbackParser.

    schema

    The schema string to parse by parser or fallbackParser.

    parser

    The function that should be invoke firstly.

    fallbackParser

    The function that is called when parser fails.

    returns

    The data type parsed from the schema schema.

  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

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

Inherited from AnyRef

Inherited from Any

Ungrouped