Enum SupportedTypes
- java.lang.Object
-
- java.lang.Enum<SupportedTypes>
-
- com.amazonaws.athena.connector.lambda.data.SupportedTypes
-
- All Implemented Interfaces:
Serializable
,Comparable<SupportedTypes>
public enum SupportedTypes extends Enum<SupportedTypes>
This enum defines the ApacheArrow types which are supported by this SDK. Using types not in this enum may lead to unpredictable performance or errors as different engines (e.g. Athena) may support these types to a different extent.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
assertSupported(org.apache.arrow.vector.types.pojo.Field field)
Asserts if the provided field (and its children) all use supported types.org.apache.arrow.vector.types.Types.MinorType
getArrowMinorType()
static boolean
isSupported(org.apache.arrow.vector.types.pojo.ArrowType arrowType)
Tests if the provided type is supported.static boolean
isSupported(org.apache.arrow.vector.types.pojo.Field field)
Asserts if the provided field (and its children) all use supported types.static boolean
isSupported(org.apache.arrow.vector.types.Types.MinorType minorType)
Tests if the provided type is supported.static SupportedTypes
valueOf(String name)
Returns the enum constant of this type with the specified name.static SupportedTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BIT
public static final SupportedTypes BIT
-
DATEMILLI
public static final SupportedTypes DATEMILLI
-
DATEDAY
public static final SupportedTypes DATEDAY
-
TIMESTAMPMILLITZ
public static final SupportedTypes TIMESTAMPMILLITZ
-
TIMESTAMPMICROTZ
public static final SupportedTypes TIMESTAMPMICROTZ
-
FLOAT8
public static final SupportedTypes FLOAT8
-
FLOAT4
public static final SupportedTypes FLOAT4
-
INT
public static final SupportedTypes INT
-
TINYINT
public static final SupportedTypes TINYINT
-
SMALLINT
public static final SupportedTypes SMALLINT
-
BIGINT
public static final SupportedTypes BIGINT
-
VARBINARY
public static final SupportedTypes VARBINARY
-
DECIMAL
public static final SupportedTypes DECIMAL
-
VARCHAR
public static final SupportedTypes VARCHAR
-
STRUCT
public static final SupportedTypes STRUCT
-
LIST
public static final SupportedTypes LIST
-
MAP
public static final SupportedTypes MAP
-
-
Method Detail
-
values
public static SupportedTypes[] 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 (SupportedTypes c : SupportedTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SupportedTypes 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
-
getArrowMinorType
public org.apache.arrow.vector.types.Types.MinorType getArrowMinorType()
-
isSupported
public static boolean isSupported(org.apache.arrow.vector.types.Types.MinorType minorType)
Tests if the provided type is supported.- Parameters:
minorType
- The minor type to test- Returns:
- True if the minor type is supported, false otherwise.
-
isSupported
public static boolean isSupported(org.apache.arrow.vector.types.pojo.ArrowType arrowType)
Tests if the provided type is supported.- Parameters:
arrowType
- The arrow type to test- Returns:
- True if the arrow type is supported, false otherwise.
-
isSupported
public static boolean isSupported(org.apache.arrow.vector.types.pojo.Field field)
Asserts if the provided field (and its children) all use supported types.- Parameters:
field
- The field to test.- Returns:
- The field being asserted, if all types used by the field and its children are supported.
- Throws:
RuntimeException
- If any of the types used by this field or its children are not supported.
-
assertSupported
public static void assertSupported(org.apache.arrow.vector.types.pojo.Field field)
Asserts if the provided field (and its children) all use supported types.- Parameters:
field
- The field to test.- Throws:
RuntimeException
- If any of the types used by this field or its children are not supported.
-
-