com.vertica.sdk.TypeCoercionPolicy Enum Reference
Collaboration diagram for com.vertica.sdk.TypeCoercionPolicy:
| Public Member Functions | |
|---|---|
| TypeCoercionPolicy (String errorReason) | |
| String | getErrorReason () |
| Public Attributes | |
|---|---|
| FAIL_INVALID_INPUT_TYPE | |
| FAIL_INVALID_INPUT_VALUE | |
| FAIL_SDK_UNSUPPORTED_TYPE | |
| FAIL_UNSUPPORTED_TYPE | |
| TRUNCATE_VALUES |
Detailed Description
A collection of optional policy choices for TypeCoercion instances. These represent common choices that can be enabled or disabled for a given TypeCoercion instance.
Member Data Documentation
◆FAIL_INVALID_INPUT_TYPE
| com.vertica.sdk.TypeCoercionPolicy.FAIL_INVALID_INPUT_TYPE |
|---|
Initial value:
=( "The input type cannot be coerced to the target type")
Consider invalid input types as failures.
Referenced by com.vertica.sdk.NoopTypeCoercion.getDefaultPolicy().
◆FAIL_INVALID_INPUT_VALUE
| com.vertica.sdk.TypeCoercionPolicy.FAIL_INVALID_INPUT_VALUE |
|---|
Initial value:
=( "The input value cannot be coerced to the target type")
Consider invalid input values (of valid input type) as failures.
Referenced by com.vertica.sdk.NoopTypeCoercion.getDefaultPolicy().
◆FAIL_SDK_UNSUPPORTED_TYPE
| com.vertica.sdk.TypeCoercionPolicy.FAIL_SDK_UNSUPPORTED_TYPE |
|---|
Initial value:
=( "The target type is unsupported by the Vertica Java SDK")
Consider target types that are unsupported by the Vertica Java SDK as failures.
Referenced by com.vertica.sdk.NoopTypeCoercion.getDefaultPolicy().
◆FAIL_UNSUPPORTED_TYPE
| com.vertica.sdk.TypeCoercionPolicy.FAIL_UNSUPPORTED_TYPE |
|---|
Initial value:
=( "Unsupported target type")
Consider types that are unsupported by TypeCoercion as failures. See FAIL_SDK_UNSUPPORTED_TYPE for types not supported by the Vertica SDK.
Referenced by com.vertica.sdk.NoopTypeCoercion.getDefaultPolicy().
◆TRUNCATE_VALUES
| com.vertica.sdk.TypeCoercionPolicy.TRUNCATE_VALUES |
|---|
Initial value:
=( "The input value is too large for the target type")
Values that are too large for the target type should be truncated. Otherwise, they are treated as invalid input values and handled according to FAIL_INVALID_INPUT_VALUE.