Package com.exasol.adapter.properties
Class DataTypeDetection
- java.lang.Object
-
- com.exasol.adapter.properties.DataTypeDetection
-
public class DataTypeDetection extends Object
This class represents a special Adapter Property for JDBC-based Virtual Schemas controlling the strategy for determining data types forIMPORTstatement.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataTypeDetection.StrategyStrategies for data type detection
-
Field Summary
Fields Modifier and Type Field Description static StringSTRATEGY_PROPERTYName of the Adapter Property to be passed toCREATE VIRTUAL SCHEMA
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataTypeDetectioncreate()DataTypeDetection.StrategygetStrategy()static PropertyValidatorgetValidator()static <T> Tstrategies(Collector<CharSequence,?,T> collector)
-
-
-
Field Detail
-
STRATEGY_PROPERTY
public static final String STRATEGY_PROPERTY
Name of the Adapter Property to be passed toCREATE VIRTUAL SCHEMA- See Also:
- Constant Field Values
-
-
Method Detail
-
getValidator
public static PropertyValidator getValidator()
- Returns:
- validator for the property controlling the strategy for data type detection.
-
create
public static DataTypeDetection create()
- Returns:
- new instance of
DataTypeDetection
-
strategies
public static <T> T strategies(Collector<CharSequence,?,T> collector)
- Type Parameters:
T- Type of strategy- Parameters:
collector- collector to collect the strategies- Returns:
- result of collecting the strategies
-
getStrategy
public DataTypeDetection.Strategy getStrategy()
- Returns:
- strategy
-
-