Enum DynamoDbType
- java.lang.Object
-
- java.lang.Enum<DynamoDbType>
-
- org.apache.flink.connector.dynamodb.util.DynamoDbType
-
- All Implemented Interfaces:
Serializable,Comparable<DynamoDbType>
@Internal public enum DynamoDbType extends Enum<DynamoDbType>
enum representing the dynamodb types.- String
- Number
- Boolean
- Null
- Binary
- String Set
- Number Set
- Binary Set
- List
- Map
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BINARYBINARY_SETBOOLEANLISTMAPNULLNUMBERNUMBER_SETSTRINGSTRING_SET
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DynamoDbTypefromByteValue(byte value)Creates aDynamoDbTypefrom the given byte value.bytetoByteValue()Returns the byte value representation of thisDynamoDbType.static DynamoDbTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DynamoDbType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final DynamoDbType STRING
-
NUMBER
public static final DynamoDbType NUMBER
-
BOOLEAN
public static final DynamoDbType BOOLEAN
-
NULL
public static final DynamoDbType NULL
-
BINARY
public static final DynamoDbType BINARY
-
STRING_SET
public static final DynamoDbType STRING_SET
-
NUMBER_SET
public static final DynamoDbType NUMBER_SET
-
BINARY_SET
public static final DynamoDbType BINARY_SET
-
LIST
public static final DynamoDbType LIST
-
MAP
public static final DynamoDbType MAP
-
-
Method Detail
-
values
public static DynamoDbType[] 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 (DynamoDbType c : DynamoDbType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DynamoDbType 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
-
toByteValue
public byte toByteValue()
Returns the byte value representation of thisDynamoDbType. The byte value is used for serialization and deserialization.- "0" represents
STRING. - "1" represents
NUMBER. - "2" represents
BOOLEAN. - "3" represents
NULL. - "4" represents
BINARY. - "5" represents
STRING_SET. - "6" represents
NUMBER_SET. - "7" represents
BINARY_SET. - "8" represents
LIST. - "9" represents
MAP.
- "0" represents
-
fromByteValue
public static DynamoDbType fromByteValue(byte value)
Creates aDynamoDbTypefrom the given byte value. EachDynamoDbTypehas a byte value representation.- See Also:
for mapping of byte value and .
-
-