Enum StandardConversions.ConversionType
java.lang.Object
java.lang.Enum<StandardConversions.ConversionType>
org.apache.drill.exec.physical.impl.scan.convert.StandardConversions.ConversionType
- All Implemented Interfaces:
Serializable
,Comparable<StandardConversions.ConversionType>
- Enclosing class:
- StandardConversions
public static enum StandardConversions.ConversionType
extends Enum<StandardConversions.ConversionType>
Indicates the type of conversion needed.
-
Enum Constant Summary
Enum ConstantDescriptionConversion is needed because there is no "natural", precision-preserving conversion.Conversion is done by the column writers.Conversion is done by the column writers.No conversion needed. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static StandardConversions.ConversionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
No conversion needed. Readers generally don't provide converters in this case unless the meaning of a column must change, keeping the type, such as converting between units. -
IMPLICIT
Conversion is done by the column writers. Again, no converter is needed except for semantic reasons. -
IMPLICIT_UNSAFE
Conversion is done by the column writers. No converter is needed. However, the value is subject to overflow as this is a narrowing operation. Depending on the implementation, the operation may either raise an error, or produce a value limited by the range of the target type. -
EXPLICIT
Conversion is needed because there is no "natural", precision-preserving conversion. Conversions must be done on an ad-hoc basis.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-