Enum Schema.TypeName

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Schema.TypeName>
    Enclosing class:
    Schema

    public static enum Schema.TypeName
    extends java.lang.Enum<Schema.TypeName>
    An enumerated list of type constructors.
    • Atomic types are built from type constructors that take no arguments
    • Arrays, rows, and maps are type constructors that take additional arguments to form a valid Schema.FieldType.
    • Field Detail

      • NUMERIC_TYPES

        public static final java.util.Set<Schema.TypeName> NUMERIC_TYPES
      • STRING_TYPES

        public static final java.util.Set<Schema.TypeName> STRING_TYPES
      • DATE_TYPES

        public static final java.util.Set<Schema.TypeName> DATE_TYPES
      • COLLECTION_TYPES

        public static final java.util.Set<Schema.TypeName> COLLECTION_TYPES
      • COMPOSITE_TYPES

        public static final java.util.Set<Schema.TypeName> COMPOSITE_TYPES
    • Method Detail

      • values

        public static Schema.TypeName[] 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 (Schema.TypeName c : Schema.TypeName.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Schema.TypeName valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isPrimitiveType

        public boolean isPrimitiveType()
      • isNumericType

        public boolean isNumericType()
      • isStringType

        public boolean isStringType()
      • isDateType

        public boolean isDateType()
      • isCollectionType

        public boolean isCollectionType()
      • isMapType

        public boolean isMapType()
      • isCompositeType

        public boolean isCompositeType()
      • isLogicalType

        public boolean isLogicalType()
      • isSupertypeOf

        public boolean isSupertypeOf​(Schema.TypeName other)
        Whether this is a super type of the another type.