public enum SupportedCustomDataType extends Enum<SupportedCustomDataType>
| Enum Constant and Description |
|---|
SPARK_ML_MATRIX |
SPARK_ML_VECTOR |
| Modifier and Type | Method and Description |
|---|---|
static Optional<SupportedCustomDataType> |
forDescription(String description) |
org.apache.spark.sql.types.UserDefinedType |
getSparkDataType() |
org.apache.spark.sql.types.DataType |
getSqlType() |
String |
getTypeMarker() |
static Optional<SupportedCustomDataType> |
of(org.apache.spark.sql.types.DataType dataType) |
org.apache.spark.sql.catalyst.InternalRow |
serialize(Object obj) |
static org.apache.spark.sql.types.DataType |
toSqlType(org.apache.spark.sql.types.DataType dataType) |
static SupportedCustomDataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SupportedCustomDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SupportedCustomDataType SPARK_ML_VECTOR
public static final SupportedCustomDataType SPARK_ML_MATRIX
public static SupportedCustomDataType[] values()
for (SupportedCustomDataType c : SupportedCustomDataType.values()) System.out.println(c);
public static SupportedCustomDataType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic org.apache.spark.sql.types.UserDefinedType getSparkDataType()
public String getTypeMarker()
public org.apache.spark.sql.types.DataType getSqlType()
public org.apache.spark.sql.catalyst.InternalRow serialize(Object obj)
public static Optional<SupportedCustomDataType> of(org.apache.spark.sql.types.DataType dataType)
public static Optional<SupportedCustomDataType> forDescription(String description)
public static org.apache.spark.sql.types.DataType toSqlType(org.apache.spark.sql.types.DataType dataType)
Copyright © 2024. All rights reserved.