Package com.gridgain.cdc.gg9togg8
Enum Class PrimitiveType
- All Implemented Interfaces:
Serializable,Comparable<PrimitiveType>,Constable
List of basic types for GridGain 9 and GridGain 8.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescription<S,R> R convertValue(S src) Converts value from GG9 type to GG8 type.static PrimitiveTypefromGg8Type(Class<?> gg8Type) Retrieves instance from type that is used in GridGain 8.static PrimitiveTypefromGg9Type(Class<?> gg9Type) Retrieves instance from type that is used in GridGain 9.Class<?>gg8Type()Class<?>gg9Type()static PrimitiveTypeReturns the enum constant of this class with the specified name.static PrimitiveType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
-
TINYINT
-
SMALLINT
-
INT
-
BIGINT
-
UUID
-
REAL
-
DOUBLE
-
DECIMAL
-
VARCHAR
-
VARBINARY
-
DATE
-
TIME
-
DATETIME
-
TIMESTAMP
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
fromGg9Type
Retrieves instance from type that is used in GridGain 9.- Parameters:
gg9Type- Type used in GridGain 9.- Returns:
- Corresponding instance of this enum.
-
fromGg8Type
Retrieves instance from type that is used in GridGain 8.- Parameters:
gg8Type- Type used in GridGain 9.- Returns:
- Corresponding instance of this enum.
-
gg9Type
-
gg8Type
-
convertValue
public <S,R> R convertValue(S src) Converts value from GG9 type to GG8 type.- Type Parameters:
S- Source type.R- Result type.- Parameters:
src- Source value.- Returns:
- Converted value
-