org.apache.spark.sql.types.StructField
Serializable
, scala.Equals
, scala.Product
A field inside a StructType. param: name The name of this field. param: dataType The data type of this field. param: nullable Indicates if values of this field can be
null
values. param: metadata The metadata of this field. The metadata should be preserved during transformation if the content of the column is not modified, e.g, in selection.
Constructors
abstract static R
apply(T1 v1, T2 v2, T3 v3, T4 v4)
Clears the StructField of its current default value, if any.
Return the comment of this StructField.
Return the current default value of this StructField.
boolean
Returns a string containing a schema in DDL format.
Updates the StructField with a new comment value.
Updates the StructField with a new current default value.
Updates the StructField with a new existence default value.
Methods inherited from interface scala.EqualscanEqual, equals
Methods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
public abstract static R apply(T1 v1, T2 v2, T3 v3, T4 v4)
public boolean nullable()
Updates the StructField with a new current default value.
value
- (undocumented)
Clears the StructField of its current default value, if any.
()
It is present only when the field represents a table column with a default value, such as: ALTER TABLE t ALTER COLUMN c SET DEFAULT 42
.
Updates the StructField with a new existence default value.
value
- (undocumented)
Returns a string containing a schema in DDL format. For example, the following value: StructField("eventId", IntegerType, false)
will be converted to eventId
INT NOT NULL. StructField("eventId", IntegerType, true)
will be converted to eventId
INT.
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