Enum SqlServerDataType
- java.lang.Object
-
- java.lang.Enum<SqlServerDataType>
-
- com.amazonaws.athena.connectors.sqlserver.SqlServerDataType
-
- All Implemented Interfaces:
Serializable
,Comparable<SqlServerDataType>
public enum SqlServerDataType extends Enum<SqlServerDataType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIT
DATE
DATETIME
DATETIME2
DATETIMEOFFSET
NUMERIC
SMALLDATETIME
SMALLMONEY
TINYINT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.arrow.vector.types.pojo.ArrowType
fromType(String sqlServerType)
static boolean
isSupported(String dataType)
static SqlServerDataType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SqlServerDataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BIT
public static final SqlServerDataType BIT
-
TINYINT
public static final SqlServerDataType TINYINT
-
NUMERIC
public static final SqlServerDataType NUMERIC
-
SMALLMONEY
public static final SqlServerDataType SMALLMONEY
-
DATE
public static final SqlServerDataType DATE
-
DATETIME
public static final SqlServerDataType DATETIME
-
DATETIME2
public static final SqlServerDataType DATETIME2
-
SMALLDATETIME
public static final SqlServerDataType SMALLDATETIME
-
DATETIMEOFFSET
public static final SqlServerDataType DATETIMEOFFSET
-
-
Method Detail
-
values
public static SqlServerDataType[] 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 (SqlServerDataType c : SqlServerDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlServerDataType 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 sqlServerType)
-
isSupported
public static boolean isSupported(String dataType)
-
-