object DataType
- Annotations
- @Stable()
- Source
- DataType.scala
- Since
1.3.0
- Alphabetic
- By Inheritance
- DataType
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val COLLATIONS_METADATA_KEY: String
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buildFormattedString(dataType: DataType, prefix: String, stringConcat: StringConcat, maxDepth: Int): Unit
- Attributes
- protected[types]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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.
- def equalsIgnoreNullability(left: DataType, right: DataType): Boolean
Compares two types, ignoring nullability of ArrayType, MapType, StructType.
- 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
- def equalsStructurallyByName(from: DataType, to: DataType, resolver: Resolver): Boolean
Returns true if the two data types have the same field names in order recursively.
- def fromDDL(ddl: String): DataType
- def fromJson(json: String): DataType
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- 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
forschema
. If it fails, callsfallbackParser
. If the fallback function fails too, combines error message fromparser
andfallbackParser
.- schema
The schema string to parse by
parser
orfallbackParser
.- 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.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)