Package com.exasol.adapter.properties
Enum DataTypeDetection.Strategy
- java.lang.Object
-
- java.lang.Enum<DataTypeDetection.Strategy>
-
- com.exasol.adapter.properties.DataTypeDetection.Strategy
-
- All Implemented Interfaces:
Serializable,Comparable<DataTypeDetection.Strategy>
- Enclosing class:
- DataTypeDetection
public static enum DataTypeDetection.Strategy extends Enum<DataTypeDetection.Strategy>
Strategies for data type detection
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXASOL_CALCULATEDLet Exasol database calculate the data types forIMPORTstatement based on metadata of connectionFROM_RESULT_SETInfer data types forIMPORTstatement from values of the result set
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataTypeDetection.StrategyvalueOf(String name)Returns the enum constant of this type with the specified name.static DataTypeDetection.Strategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FROM_RESULT_SET
public static final DataTypeDetection.Strategy FROM_RESULT_SET
Infer data types forIMPORTstatement from values of the result set
-
EXASOL_CALCULATED
public static final DataTypeDetection.Strategy EXASOL_CALCULATED
Let Exasol database calculate the data types forIMPORTstatement based on metadata of connection
-
-
Method Detail
-
values
public static DataTypeDetection.Strategy[] 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 (DataTypeDetection.Strategy c : DataTypeDetection.Strategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataTypeDetection.Strategy 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
-
-