org.apache.spark.sql.types
Class ArrayType

Object
  extended by org.apache.spark.sql.types.DataType
      extended by 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

Constructor Summary
ArrayType(DataType elementType, boolean containsNull)
           
 
Method Summary
static ArrayType apply(DataType elementType)
          Construct a ArrayType object with the given element type.
 boolean containsNull()
           
 int defaultSize()
          The default size of a value of the ArrayType is 100 * the default size of the element type.
 DataType elementType()
           
 String simpleString()
          Readable string representation for the type.
 
Methods inherited from class org.apache.spark.sql.types.DataType
fromCaseClassString, fromJson, json, prettyJson, typeName
 
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
 

Constructor Detail

ArrayType

public ArrayType(DataType elementType,
                 boolean containsNull)
Method Detail

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