object DataType
- Annotations
- @Stable()
- Source
- DataType.scala
- Since
1.3.0
- Alphabetic
- By Inheritance
- DataType
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
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( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): 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
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def fromDDL(ddl: String): DataType
- def fromJson(json: String): DataType
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @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
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()