Package com.amazon.ion.impl
Class _Private_ScalarConversions
- java.lang.Object
-
- com.amazon.ion.impl._Private_ScalarConversions
-
public class _Private_ScalarConversions extends java.lang.ObjectNOT FOR APPLICATION USE!
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class_Private_ScalarConversions.AS_TYPEstatic class_Private_ScalarConversions.CantConvertExceptionstatic class_Private_ScalarConversions.ConversionExceptionstatic class_Private_ScalarConversions.ValueNotSetExceptionstatic class_Private_ScalarConversions.ValueVariant
-
Field Summary
-
Constructor Summary
Constructors Constructor Description _Private_ScalarConversions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringget_value_type_name(int value_type)static java.lang.StringgetAllValueTypeNames(int value_type)protected static intgetConversionFnid(int authoritative_type, int new_type)from a values authoritative type (the type of the original data for the value) and the desired type this returns the conversion functions id, or throws a CantConvertException in the event the authoritative type cannot be cast to the desired type.static IntegerSizegetIntegerSize(int authoritative_type)static java.lang.StringgetValueTypeName(int value_type)
-
-
-
Field Detail
-
FNID_no_conversion
protected static int FNID_no_conversion
-
FNID_identity
protected static int FNID_identity
-
FNID_FROM_STRING_TO_NULL
protected static final int FNID_FROM_STRING_TO_NULL
- See Also:
- Constant Field Values
-
FNID_FROM_STRING_TO_BOOLEAN
protected static final int FNID_FROM_STRING_TO_BOOLEAN
- See Also:
- Constant Field Values
-
FNID_FROM_STRING_TO_INT
protected static final int FNID_FROM_STRING_TO_INT
- See Also:
- Constant Field Values
-
FNID_FROM_STRING_TO_LONG
protected static final int FNID_FROM_STRING_TO_LONG
- See Also:
- Constant Field Values
-
FNID_FROM_STRING_TO_BIGINTEGER
protected static final int FNID_FROM_STRING_TO_BIGINTEGER
- See Also:
- Constant Field Values
-
FNID_FROM_STRING_TO_DECIMAL
protected static final int FNID_FROM_STRING_TO_DECIMAL
- See Also:
- Constant Field Values
-
FNID_FROM_STRING_TO_DOUBLE
protected static final int FNID_FROM_STRING_TO_DOUBLE
- See Also:
- Constant Field Values
-
FNID_FROM_STRING_TO_DATE
protected static final int FNID_FROM_STRING_TO_DATE
- See Also:
- Constant Field Values
-
FNID_FROM_STRING_TO_TIMESTAMP
protected static final int FNID_FROM_STRING_TO_TIMESTAMP
- See Also:
- Constant Field Values
-
FNID_FROM_NULL_TO_STRING
protected static final int FNID_FROM_NULL_TO_STRING
- See Also:
- Constant Field Values
-
FNID_FROM_BOOLEAN_TO_STRING
protected static final int FNID_FROM_BOOLEAN_TO_STRING
- See Also:
- Constant Field Values
-
FNID_FROM_INT_TO_STRING
protected static final int FNID_FROM_INT_TO_STRING
- See Also:
- Constant Field Values
-
FNID_FROM_LONG_TO_STRING
protected static final int FNID_FROM_LONG_TO_STRING
- See Also:
- Constant Field Values
-
FNID_FROM_BIGINTEGER_TO_STRING
protected static final int FNID_FROM_BIGINTEGER_TO_STRING
- See Also:
- Constant Field Values
-
FNID_FROM_DECIMAL_TO_STRING
protected static final int FNID_FROM_DECIMAL_TO_STRING
- See Also:
- Constant Field Values
-
FNID_FROM_DOUBLE_TO_STRING
protected static final int FNID_FROM_DOUBLE_TO_STRING
- See Also:
- Constant Field Values
-
FNID_FROM_DATE_TO_STRING
protected static final int FNID_FROM_DATE_TO_STRING
- See Also:
- Constant Field Values
-
FNID_FROM_TIMESTAMP_TO_STRING
protected static final int FNID_FROM_TIMESTAMP_TO_STRING
- See Also:
- Constant Field Values
-
FNID_FROM_LONG_TO_INT
protected static final int FNID_FROM_LONG_TO_INT
- See Also:
- Constant Field Values
-
FNID_FROM_BIGINTEGER_TO_INT
protected static final int FNID_FROM_BIGINTEGER_TO_INT
- See Also:
- Constant Field Values
-
FNID_FROM_DECIMAL_TO_INT
protected static final int FNID_FROM_DECIMAL_TO_INT
- See Also:
- Constant Field Values
-
FNID_FROM_DOUBLE_TO_INT
protected static final int FNID_FROM_DOUBLE_TO_INT
- See Also:
- Constant Field Values
-
FNID_FROM_INT_TO_LONG
protected static final int FNID_FROM_INT_TO_LONG
- See Also:
- Constant Field Values
-
FNID_FROM_BIGINTEGER_TO_LONG
protected static final int FNID_FROM_BIGINTEGER_TO_LONG
- See Also:
- Constant Field Values
-
FNID_FROM_DECIMAL_TO_LONG
protected static final int FNID_FROM_DECIMAL_TO_LONG
- See Also:
- Constant Field Values
-
FNID_FROM_DOUBLE_TO_LONG
protected static final int FNID_FROM_DOUBLE_TO_LONG
- See Also:
- Constant Field Values
-
FNID_FROM_INT_TO_BIGINTEGER
protected static final int FNID_FROM_INT_TO_BIGINTEGER
- See Also:
- Constant Field Values
-
FNID_FROM_LONG_TO_BIGINTEGER
protected static final int FNID_FROM_LONG_TO_BIGINTEGER
- See Also:
- Constant Field Values
-
FNID_FROM_DECIMAL_TO_BIGINTEGER
protected static final int FNID_FROM_DECIMAL_TO_BIGINTEGER
- See Also:
- Constant Field Values
-
FNID_FROM_DOUBLE_TO_BIGINTEGER
protected static final int FNID_FROM_DOUBLE_TO_BIGINTEGER
- See Also:
- Constant Field Values
-
FNID_FROM_INT_TO_DECIMAL
protected static final int FNID_FROM_INT_TO_DECIMAL
- See Also:
- Constant Field Values
-
FNID_FROM_LONG_TO_DECIMAL
protected static final int FNID_FROM_LONG_TO_DECIMAL
- See Also:
- Constant Field Values
-
FNID_FROM_BIGINTEGER_TO_DECIMAL
protected static final int FNID_FROM_BIGINTEGER_TO_DECIMAL
- See Also:
- Constant Field Values
-
FNID_FROM_DOUBLE_TO_DECIMAL
protected static final int FNID_FROM_DOUBLE_TO_DECIMAL
- See Also:
- Constant Field Values
-
FNID_FROM_INT_TO_DOUBLE
protected static final int FNID_FROM_INT_TO_DOUBLE
- See Also:
- Constant Field Values
-
FNID_FROM_LONG_TO_DOUBLE
protected static final int FNID_FROM_LONG_TO_DOUBLE
- See Also:
- Constant Field Values
-
FNID_FROM_BIGINTEGER_TO_DOUBLE
protected static final int FNID_FROM_BIGINTEGER_TO_DOUBLE
- See Also:
- Constant Field Values
-
FNID_FROM_DECIMAL_TO_DOUBLE
protected static final int FNID_FROM_DECIMAL_TO_DOUBLE
- See Also:
- Constant Field Values
-
FNID_FROM_TIMESTAMP_TO_DATE
protected static final int FNID_FROM_TIMESTAMP_TO_DATE
- See Also:
- Constant Field Values
-
FNID_FROM_DATE_TO_TIMESTAMP
protected static final int FNID_FROM_DATE_TO_TIMESTAMP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIntegerSize
public static IntegerSize getIntegerSize(int authoritative_type)
-
getValueTypeName
public static java.lang.String getValueTypeName(int value_type)
-
get_value_type_name
public static java.lang.String get_value_type_name(int value_type)
-
getAllValueTypeNames
public static final java.lang.String getAllValueTypeNames(int value_type)
-
getConversionFnid
protected static final int getConversionFnid(int authoritative_type, int new_type)from a values authoritative type (the type of the original data for the value) and the desired type this returns the conversion functions id, or throws a CantConvertException in the event the authoritative type cannot be cast to the desired type.- Parameters:
authoritative_type-new_type-- Returns:
- id of the conversion function required
-
-