Package org.apache.beam.sdk.schemas
Enum Schema.TypeName
- java.lang.Object
-
- java.lang.Enum<Schema.TypeName>
-
- org.apache.beam.sdk.schemas.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 Summary
Fields Modifier and Type Field Description static java.util.Set<Schema.TypeName>
COLLECTION_TYPES
static java.util.Set<Schema.TypeName>
COMPOSITE_TYPES
static java.util.Set<Schema.TypeName>
DATE_TYPES
static java.util.Set<Schema.TypeName>
MAP_TYPES
static java.util.Set<Schema.TypeName>
NUMERIC_TYPES
static java.util.Set<Schema.TypeName>
STRING_TYPES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCollectionType()
boolean
isCompositeType()
boolean
isDateType()
boolean
isLogicalType()
boolean
isMapType()
boolean
isNumericType()
boolean
isPrimitiveType()
boolean
isStringType()
boolean
isSubtypeOf(Schema.TypeName other)
boolean
isSupertypeOf(Schema.TypeName other)
Whether this is a super type of the another type.static Schema.TypeName
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Schema.TypeName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final Schema.TypeName BYTE
-
INT16
public static final Schema.TypeName INT16
-
INT32
public static final Schema.TypeName INT32
-
INT64
public static final Schema.TypeName INT64
-
DECIMAL
public static final Schema.TypeName DECIMAL
-
FLOAT
public static final Schema.TypeName FLOAT
-
DOUBLE
public static final Schema.TypeName DOUBLE
-
STRING
public static final Schema.TypeName STRING
-
DATETIME
public static final Schema.TypeName DATETIME
-
BOOLEAN
public static final Schema.TypeName BOOLEAN
-
BYTES
public static final Schema.TypeName BYTES
-
ARRAY
public static final Schema.TypeName ARRAY
-
ITERABLE
public static final Schema.TypeName ITERABLE
-
MAP
public static final Schema.TypeName MAP
-
ROW
public static final Schema.TypeName ROW
-
LOGICAL_TYPE
public static final Schema.TypeName LOGICAL_TYPE
-
-
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
-
MAP_TYPES
public static final java.util.Set<Schema.TypeName> MAP_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 namejava.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()
-
isSubtypeOf
public boolean isSubtypeOf(Schema.TypeName other)
-
isSupertypeOf
public boolean isSupertypeOf(Schema.TypeName other)
Whether this is a super type of the another type.
-
-