Java org.apache.spark.sql.types DataTypes fields, constructors, methods, implement or subclass

Example usage for Java org.apache.spark.sql.types DataTypes fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.spark.sql.types DataTypes.

The text is from its open source code.

Field

DataTypeStringType
Gets the StringType object.
DataTypeBinaryType
Gets the BinaryType object.
DataTypeBooleanType
Gets the BooleanType object.
DataTypeDateType
Gets the DateType object.
DataTypeTimestampType
Gets the TimestampType object.
DataTypeCalendarIntervalType
Gets the CalendarIntervalType object.
DataTypeDoubleType
Gets the DoubleType object.
DataTypeFloatType
Gets the FloatType object.
DataTypeByteType
Gets the ByteType object.
DataTypeIntegerType
Gets the IntegerType object.
DataTypeLongType
Gets the LongType object.
DataTypeShortType
Gets the ShortType object.
DataTypeNullType
Gets the NullType object.

Method

ArrayTypecreateArrayType(DataType elementType)
Creates an ArrayType by specifying the data type of elements ( elementType ).
DecimalTypecreateDecimalType()
Creates a DecimalType with default precision and scale, which are 10 and 0.
MapTypecreateMapType(DataType keyType, DataType valueType)
Creates a MapType by specifying the data type of keys ( keyType ) and values ( keyType ).
MapTypecreateMapType(DataType keyType, DataType valueType, boolean valueContainsNull)
Creates a MapType by specifying the data type of keys ( keyType ), the data type of values ( keyType ), and whether values contain any null value ( valueContainsNull ).
StructFieldcreateStructField(String name, DataType dataType, boolean nullable)
Creates a StructField with empty metadata.
StructTypecreateStructType(List fields)
Creates a StructType with the given list of StructFields ( fields ).
StructTypecreateStructType(StructField[] fields)
Creates a StructType with the given StructField array ( fields ).