Enum SupportedTypes

  • All Implemented Interfaces:
    Serializable, Comparable<SupportedTypes>

    public enum SupportedTypes
    extends Enum<SupportedTypes>
    This enum defines the ApacheArrow types which are supported by this SDK. Using types not in this enum may lead to unpredictable performance or errors as different engines (e.g. Athena) may support these types to a different extent.
    • Method Detail

      • values

        public static SupportedTypes[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SupportedTypes c : SupportedTypes.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SupportedTypes valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getArrowMinorType

        public org.apache.arrow.vector.types.Types.MinorType getArrowMinorType()
      • isSupported

        public static boolean isSupported​(org.apache.arrow.vector.types.Types.MinorType minorType)
        Tests if the provided type is supported.
        Parameters:
        minorType - The minor type to test
        Returns:
        True if the minor type is supported, false otherwise.
      • isSupported

        public static boolean isSupported​(org.apache.arrow.vector.types.pojo.ArrowType arrowType)
        Tests if the provided type is supported.
        Parameters:
        arrowType - The arrow type to test
        Returns:
        True if the arrow type is supported, false otherwise.
      • isSupported

        public static boolean isSupported​(org.apache.arrow.vector.types.pojo.Field field)
        Asserts if the provided field (and its children) all use supported types.
        Parameters:
        field - The field to test.
        Returns:
        The field being asserted, if all types used by the field and its children are supported.
        Throws:
        RuntimeException - If any of the types used by this field or its children are not supported.
      • assertSupported

        public static void assertSupported​(org.apache.arrow.vector.types.pojo.Field field)
        Asserts if the provided field (and its children) all use supported types.
        Parameters:
        field - The field to test.
        Throws:
        RuntimeException - If any of the types used by this field or its children are not supported.