@InterfaceStability.Stable
public class StructField
extends Object
implements scala.Product, scala.Serializable
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.
Constructor and Description |
---|
StructField(String name,
DataType dataType,
boolean nullable,
Metadata metadata) |
Modifier and Type | Method and Description |
---|---|
abstract static boolean |
canEqual(Object that) |
DataType |
dataType() |
abstract static boolean |
equals(Object that) |
scala.Option<String> |
getComment()
Return the comment of this StructField.
|
Metadata |
metadata() |
String |
name() |
boolean |
nullable() |
abstract static int |
productArity() |
abstract static Object |
productElement(int n) |
static scala.collection.Iterator<Object> |
productIterator() |
static String |
productPrefix() |
String |
toString() |
StructField |
withComment(String comment)
Updates the StructField with a new comment value.
|
public abstract static boolean canEqual(Object that)
public abstract static boolean equals(Object that)
public abstract static Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<Object> productIterator()
public static String productPrefix()
public String name()
public DataType dataType()
public boolean nullable()
public Metadata metadata()
public String toString()
toString
in class Object
public StructField withComment(String comment)
comment
- (undocumented)public scala.Option<String> getComment()