public class ArrayType extends DataType implements scala.Product, scala.Serializable
Constructor and Description |
---|
ArrayType(DataType elementType,
boolean containsNull) |
Modifier and Type | Method and Description |
---|---|
static ArrayType |
apply(DataType elementType)
Construct a
ArrayType object with the given element type. |
String |
catalogString()
String representation for the type saved in external catalogs.
|
boolean |
containsNull() |
int |
defaultSize()
The default size of a value of the ArrayType is the default size of the element type.
|
DataType |
elementType() |
String |
simpleString()
Readable string representation for the type.
|
String |
sql() |
canWrite, equalsStructurally, equalsStructurallyByName, fromDDL, fromJson, json, parseTypeWithFallback, prettyJson, typeName
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ArrayType(DataType elementType, boolean containsNull)
public static ArrayType apply(DataType elementType)
ArrayType
object with the given element type. The containsNull
is true.elementType
- (undocumented)public DataType elementType()
public boolean containsNull()
public int defaultSize()
defaultSize
in class DataType
public String simpleString()
DataType
simpleString
in class DataType
public String catalogString()
DataType
catalogString
in class DataType