Class HbaseFieldResolver
- java.lang.Object
-
- com.amazonaws.athena.connectors.hbase.HbaseFieldResolver
-
- All Implemented Interfaces:
FieldResolver
public class HbaseFieldResolver extends Object implements FieldResolver
Used to resolve and convert complex types from HBase to Apache Arrow's type system when using BlockUtils.setComplexValue(...).
-
-
Field Summary
-
Fields inherited from interface com.amazonaws.athena.connector.lambda.data.FieldResolver
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description HbaseFieldResolver(boolean isNative, byte[] family)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getFieldValue(org.apache.arrow.vector.types.pojo.Field field, Object val)
Used to extract a value for the given Field from the provided value.static HbaseFieldResolver
resolver(boolean isNative, String family)
Static construction helper.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.amazonaws.athena.connector.lambda.data.FieldResolver
getMapKey, getMapValue
-
-
-
-
Method Detail
-
resolver
public static HbaseFieldResolver resolver(boolean isNative, String family)
Static construction helper.- Parameters:
isNative
- True if the values are stored as native byte arrays in HBase.family
- The HBase column family that this field resolver is for.
-
getFieldValue
public Object getFieldValue(org.apache.arrow.vector.types.pojo.Field field, Object val)
Description copied from interface:FieldResolver
Used to extract a value for the given Field from the provided value.- Specified by:
getFieldValue
in interfaceFieldResolver
- Parameters:
field
- The Apache Arrow field we'd like to extract from the val.val
- The value from which we'd like to extract the provide field.- Returns:
- Object containing the value for the requested field.
- See Also:
in the Athena Query Federation SDK
-
-