Package org.apache.beam.sdk.schemas
Enum Class Schema.TypeName
- All Implemented Interfaces:
Serializable
,Comparable<Schema.TypeName>
,Constable
- Enclosing class:
Schema
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
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set
<Schema.TypeName> static final Set
<Schema.TypeName> static final Set
<Schema.TypeName> static final Set
<Schema.TypeName> static final Set
<Schema.TypeName> static final Set
<Schema.TypeName> -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isSubtypeOf
(Schema.TypeName other) boolean
isSupertypeOf
(Schema.TypeName other) Whether this is a super type of the another type.static Schema.TypeName
Returns the enum constant of this class with the specified name.static Schema.TypeName[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BYTE
-
INT16
-
INT32
-
INT64
-
DECIMAL
-
FLOAT
-
DOUBLE
-
STRING
-
DATETIME
-
BOOLEAN
-
BYTES
-
ARRAY
-
ITERABLE
-
MAP
-
ROW
-
LOGICAL_TYPE
-
-
Field Details
-
NUMERIC_TYPES
-
STRING_TYPES
-
DATE_TYPES
-
COLLECTION_TYPES
-
MAP_TYPES
-
COMPOSITE_TYPES
-
-
Method Details
-
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
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 nameNullPointerException
- 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
-
isSupertypeOf
Whether this is a super type of the another type.
-