Class TypeUtils


  • public class TypeUtils
    extends Object
    Helper class with useful methods for type conversion and coercion.
    • Method Detail

      • coerce

        public static Object coerce​(org.apache.arrow.vector.types.pojo.Field field,
                                    Object origVal)
        Allows for coercing types in the event that schema has evolved or there were other data issues.
        Parameters:
        field - The field that we are coercing the value into.
        origVal - The value to coerce
        Returns:
        The coerced value.