org.apache.spark.sql.types.DataType
ArrayType
, BinaryType
, BooleanType
, CalendarIntervalType
, DateType
, DayTimeIntervalType
, MapType
, NullType
, NumericType
, ObjectType
, StringType
, StructType
, TimestampNTZType
, TimestampType
, UserDefinedType
, VariantType
, YearMonthIntervalType
Constructors
String representation for the type saved in external catalogs.
abstract int
The default size of a value of this data type, used internally for size estimation.
static boolean
Compares two types, ignoring nullability of ArrayType, MapType, StructType, and ignoring case sensitivity of field names in StructType.
static boolean
Compares two types, ignoring nullability of ArrayType, MapType, StructType.
static boolean
Returns true if the two data types share the same "shape", i.e.
static boolean
Returns true if the two data types have the same field names in order recursively.
The compact JSON representation of this data type.
Parses data type from a string with schema.
Readable string representation for the type.
Name of the type used in JSON serialization.
public DataType()
()
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.
schema
schema.
ignoreNullability
- whether to ignore nullability when comparing the types
from
- (undocumented)
to
- (undocumented)
Returns true if the two data types have the same field names in order recursively.
from
- (undocumented)
to
- (undocumented)
resolver
- (undocumented)
Compares two types, ignoring nullability of ArrayType, MapType, StructType.
left
- (undocumented)
right
- (undocumented)
Compares two types, ignoring nullability of ArrayType, MapType, StructType, and ignoring case sensitivity of field names in StructType.
from
- (undocumented)
to
- (undocumented)
public abstract int defaultSize()
The default size of a value of this data type, used internally for size estimation.
Name of the type used in JSON serialization.
The compact JSON representation of this data type.
The pretty (i.e. indented) JSON representation of this data type.
Readable string representation for the type.
()
String representation for the type saved in external catalogs.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4