public static enum Schema.TypeName extends java.lang.Enum<Schema.TypeName>
Schema.FieldType
.
Enum Constant and Description |
---|
ARRAY |
BOOLEAN |
BYTE |
BYTES |
DATETIME |
DECIMAL |
DOUBLE |
FLOAT |
INT16 |
INT32 |
INT64 |
ITERABLE |
LOGICAL_TYPE |
MAP |
ROW |
STRING |
Modifier and Type | Field and 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 |
Modifier and Type | Method and 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.
|
public static final Schema.TypeName BYTE
public static final Schema.TypeName INT16
public static final Schema.TypeName INT32
public static final Schema.TypeName INT64
public static final Schema.TypeName DECIMAL
public static final Schema.TypeName FLOAT
public static final Schema.TypeName DOUBLE
public static final Schema.TypeName STRING
public static final Schema.TypeName DATETIME
public static final Schema.TypeName BOOLEAN
public static final Schema.TypeName BYTES
public static final Schema.TypeName ARRAY
public static final Schema.TypeName ITERABLE
public static final Schema.TypeName MAP
public static final Schema.TypeName ROW
public static final Schema.TypeName LOGICAL_TYPE
public static final java.util.Set<Schema.TypeName> NUMERIC_TYPES
public static final java.util.Set<Schema.TypeName> STRING_TYPES
public static final java.util.Set<Schema.TypeName> DATE_TYPES
public static final java.util.Set<Schema.TypeName> COLLECTION_TYPES
public static final java.util.Set<Schema.TypeName> MAP_TYPES
public static final java.util.Set<Schema.TypeName> COMPOSITE_TYPES
public static Schema.TypeName[] values()
for (Schema.TypeName c : Schema.TypeName.values()) System.out.println(c);
public static Schema.TypeName valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isPrimitiveType()
public boolean isNumericType()
public boolean isStringType()
public boolean isDateType()
public boolean isCollectionType()
public boolean isMapType()
public boolean isCompositeType()
public boolean isLogicalType()
public boolean isSubtypeOf(Schema.TypeName other)
public boolean isSupertypeOf(Schema.TypeName other)