Class TypeUtils
- java.lang.Object
-
- com.amazonaws.athena.connectors.docdb.TypeUtils
-
public class TypeUtils extends Object
Helper class with useful methods for type conversion and coercion.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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.
-
-