Interface FieldResolver

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static FieldResolver DEFAULT
      Basic FieldResolver capable of resolving nested (or single level) Lists and Structs if the List values are iterable and the Structs values are represented as Map
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      Object getFieldValue​(org.apache.arrow.vector.types.pojo.Field field, Object value)
      Used to extract a value for the given Field from the provided value.
      default Object getMapKey​(org.apache.arrow.vector.types.pojo.Field field, Object value)
      Allow for additional logic to be apply for the retrieval of map keys If not overwritten, the default behavior is to assume a standard map with no special logic where the key is NOT a complex value
      default Object getMapValue​(org.apache.arrow.vector.types.pojo.Field field, Object value)
      Allow for additional logic to be apply for the retrieval of map values If not overwritten, the default behavior is to assume a standard map with no special logic and return the value directly
    • Field Detail

      • DEFAULT

        static final FieldResolver DEFAULT
        Basic FieldResolver capable of resolving nested (or single level) Lists and Structs if the List values are iterable and the Structs values are represented as Map
    • Method Detail

      • getFieldValue

        Object getFieldValue​(org.apache.arrow.vector.types.pojo.Field field,
                             Object value)
        Used to extract a value for the given Field from the provided value.
        Parameters:
        field - The field that we would like to extract from the provided value.
        value - The complex value we'd like to extract the provided field from.
        Returns:
        The value to use for the given field.
      • getMapKey

        default Object getMapKey​(org.apache.arrow.vector.types.pojo.Field field,
                                 Object value)
        Allow for additional logic to be apply for the retrieval of map keys If not overwritten, the default behavior is to assume a standard map with no special logic where the key is NOT a complex value
        Parameters:
        field - The field that we would like to extract from the provided value.
        value - The complex value we'd like to extract the provided field from.
        Returns:
        The value to use for the given field.
      • getMapValue

        default Object getMapValue​(org.apache.arrow.vector.types.pojo.Field field,
                                   Object value)
        Allow for additional logic to be apply for the retrieval of map values If not overwritten, the default behavior is to assume a standard map with no special logic and return the value directly
        Parameters:
        field - The field that we would like to extract from the provided value.
        value - The complex value we'd like to extract the provided field from.
        Returns:
        The value to use for the given field.