Enum DataLakeGen2DataType
- java.lang.Object
-
- java.lang.Enum<DataLakeGen2DataType>
-
- com.amazonaws.athena.connectors.datalakegen2.DataLakeGen2DataType
-
- All Implemented Interfaces:
Serializable
,Comparable<DataLakeGen2DataType>
public enum DataLakeGen2DataType extends Enum<DataLakeGen2DataType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIT
DATE
DATETIME
DATETIME2
DATETIMEOFFSET
NUMERIC
SMALLDATETIME
SMALLMONEY
TINYINT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.arrow.vector.types.pojo.ArrowType
fromType(String gen2Type)
org.apache.arrow.vector.types.pojo.ArrowType
getArrowType()
static boolean
isSupported(String dataType)
static DataLakeGen2DataType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataLakeGen2DataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BIT
public static final DataLakeGen2DataType BIT
-
TINYINT
public static final DataLakeGen2DataType TINYINT
-
NUMERIC
public static final DataLakeGen2DataType NUMERIC
-
SMALLMONEY
public static final DataLakeGen2DataType SMALLMONEY
-
DATE
public static final DataLakeGen2DataType DATE
-
DATETIME
public static final DataLakeGen2DataType DATETIME
-
DATETIME2
public static final DataLakeGen2DataType DATETIME2
-
SMALLDATETIME
public static final DataLakeGen2DataType SMALLDATETIME
-
DATETIMEOFFSET
public static final DataLakeGen2DataType DATETIMEOFFSET
-
-
Method Detail
-
values
public static DataLakeGen2DataType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataLakeGen2DataType c : DataLakeGen2DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataLakeGen2DataType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromType
public static org.apache.arrow.vector.types.pojo.ArrowType fromType(String gen2Type)
-
isSupported
public static boolean isSupported(String dataType)
-
getArrowType
public org.apache.arrow.vector.types.pojo.ArrowType getArrowType()
-
-