Example usage for Java org.apache.spark.sql.types DataTypes fields, constructors, methods, implement or subclass
The text is from its open source code.
DataType | StringType Gets the StringType object. |
DataType | BinaryType Gets the BinaryType object. |
DataType | BooleanType Gets the BooleanType object. |
DataType | DateType Gets the DateType object. |
DataType | TimestampType Gets the TimestampType object. |
DataType | CalendarIntervalType Gets the CalendarIntervalType object. |
DataType | DoubleType Gets the DoubleType object. |
DataType | FloatType Gets the FloatType object. |
DataType | ByteType Gets the ByteType object. |
DataType | IntegerType Gets the IntegerType object. |
DataType | LongType Gets the LongType object. |
DataType | ShortType Gets the ShortType object. |
DataType | NullType Gets the NullType object. |
ArrayType | createArrayType(DataType elementType) Creates an ArrayType by specifying the data type of elements ( elementType ). |
DecimalType | createDecimalType() Creates a DecimalType with default precision and scale, which are 10 and 0. |
MapType | createMapType(DataType keyType, DataType valueType) Creates a MapType by specifying the data type of keys ( keyType ) and values ( keyType ). |
MapType | createMapType(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 ). |
StructField | createStructField(String name, DataType dataType, boolean nullable) Creates a StructField with empty metadata. |
StructType | createStructType(List Creates a StructType with the given list of StructFields ( fields ). |
StructType | createStructType(StructField[] fields) Creates a StructType with the given StructField array ( fields ). |