Enum Class Schema.TypeName

java.lang.Object
java.lang.Enum<Schema.TypeName>
org.apache.beam.sdk.schemas.Schema.TypeName
All Implemented Interfaces:
Serializable, Comparable<Schema.TypeName>, Constable
Enclosing class:
Schema

public static enum Schema.TypeName extends 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.
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static Schema.TypeName[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Schema.TypeName valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      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()
    • isSubtypeOf

      public boolean isSubtypeOf(Schema.TypeName other)
    • isSupertypeOf

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