org.apache.spark.sql.types
Class ArrayType
Object
org.apache.spark.sql.types.DataType
org.apache.spark.sql.types.ArrayType
- All Implemented Interfaces:
- java.io.Serializable, scala.Equals, scala.Product
public class ArrayType
- extends DataType
- implements scala.Product, scala.Serializable
- See Also:
- Serialized Form
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
ArrayType
public ArrayType(DataType elementType,
boolean containsNull)
apply
public static ArrayType apply(DataType elementType)
- Construct a
ArrayType
object with the given element type. The `containsNull` is true.
elementType
public DataType elementType()
containsNull
public boolean containsNull()
defaultSize
public int defaultSize()
- The default size of a value of the ArrayType is 100 * the default size of the element type.
(We assume that there are 100 elements).
- Specified by:
defaultSize
in class DataType
- Returns:
- (undocumented)
simpleString
public String simpleString()
- Description copied from class:
DataType
- Readable string representation for the type.
- Overrides:
simpleString
in class DataType