org.apache.spark.sql.types
Class StructField
Object
org.apache.spark.sql.types.StructField
- All Implemented Interfaces:
- java.io.Serializable, scala.Equals, scala.Product
public class StructField
- extends Object
- implements scala.Product, scala.Serializable
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.
- See Also:
- Serialized Form
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
StructField
public StructField(String name,
DataType dataType,
boolean nullable,
Metadata metadata)
name
public String name()
dataType
public DataType dataType()
nullable
public boolean nullable()
metadata
public Metadata metadata()
toString
public String toString()
- Overrides:
toString
in class Object