Class ValueConverter
- java.lang.Object
-
- com.amazonaws.athena.connectors.redis.ValueConverter
-
public class ValueConverter extends Object
Used to convert from Redis' native value/type system to the Apache Arrow type that was configured for the particular field.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
convert(org.apache.arrow.vector.types.pojo.Field field, String origVal)
Allows for coercing types in the event that schema has evolved or there were other data issues.
-
-
-
Method Detail
-
convert
public static Object convert(org.apache.arrow.vector.types.pojo.Field field, String origVal)
Allows for coercing types in the event that schema has evolved or there were other data issues.- Parameters:
field
- The Apache Arrow field that the value belongs to.origVal
- The original value from Redis (before any conversion or coercion).- Returns:
- The coerced value.
-
-