| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
DataType --+
|
StructField
Spark SQL StructField
Represents a field in a StructType. A StructField object comprises three fields, name (a string), dataType (a DataType) and nullable (a bool). The field of name is the name of a StructField. The field of dataType specifies the data type of a StructField.
The field of nullable specifies if values of a StructField can contain None values.
| Instance Methods | |||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Properties | |
|
Inherited from |
| Method Details |
Creates a StructField
:param name: the name of this field.
:param dataType: the data type of this field.
:param nullable: indicates whether values of this field
can be null.
>>> (StructField("f1", StringType, True)
... == StructField("f1", StringType, True))
True
>>> (StructField("f1", StringType, True)
... == StructField("f2", StringType, True))
False
|
repr(x)
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Sep 11 01:19:41 2014 | http://epydoc.sourceforge.net |