Class 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(...).
    • Constructor Detail

      • HbaseFieldResolver

        public HbaseFieldResolver​(boolean isNative,
                                  byte[] family)
        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.
    • 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 interface FieldResolver
        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