Package com.google.cloud.bigquery
Class LegacySQLTypeName
java.lang.Object
com.google.cloud.StringEnumValue
com.google.cloud.bigquery.LegacySQLTypeName
- All Implemented Interfaces:
Serializable
public final class LegacySQLTypeName
extends com.google.cloud.StringEnumValue
A type used in legacy SQL contexts. NOTE: some contexts use a mix of types; for example, for
queries that use standard SQL, the return types are the legacy SQL types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LegacySQLTypeNameA decimal value with 76+ digits of precision (the 77th digit is partial) and 38 digits of scalestatic final LegacySQLTypeNameA Boolean value (true or false).static final LegacySQLTypeNameVariable-length binary data.static final LegacySQLTypeNameRepresents a logical calendar date.static final LegacySQLTypeNameRepresents a year, month, day, hour, minute, second, and subsecond (microsecond precision).static final LegacySQLTypeNameA 64-bit IEEE binary floating-point value.static final LegacySQLTypeNameRepresents a set of geographic points, represented as a Well Known Text (WKT) string.static final LegacySQLTypeNameA 64-bit signed integer value.static final LegacySQLTypeNameRepresents duration or amount of time.static final LegacySQLTypeNameRepresents JSON datastatic final LegacySQLTypeNameA decimal value with 38 digits of precision and 9 digits of scale.static final LegacySQLTypeNameRepresents a contiguous range of values.static final LegacySQLTypeNameA record type with a nested schema.static final LegacySQLTypeNameVariable-length character (Unicode) data.static final LegacySQLTypeNameRepresents a time, independent of a specific date, to microsecond precision.static final LegacySQLTypeNameRepresents an absolute point in time, with microsecond precision. -
Method Summary
Modifier and TypeMethodDescriptionProvides the standard SQL type name equivalent to this type name.static LegacySQLTypeNameConverts StandardSQLTypeName to LegacySQLTypeNamestatic LegacySQLTypeNameGet the LegacySQLTypeName for the given String constant, and allow unrecognized values.static LegacySQLTypeNamevalueOfStrict(String constant) Get the LegacySQLTypeName for the given String constant, and throw an exception if the constant is not recognized.static LegacySQLTypeName[]values()Return the known values for LegacySQLTypeName.Methods inherited from class com.google.cloud.StringEnumValue
equals, hashCode, name, toString
-
Field Details
-
BYTES
Variable-length binary data. -
STRING
Variable-length character (Unicode) data. -
INTEGER
A 64-bit signed integer value. -
FLOAT
A 64-bit IEEE binary floating-point value. -
NUMERIC
A decimal value with 38 digits of precision and 9 digits of scale. Note, support for this type is limited in legacy SQL. -
BIGNUMERIC
A decimal value with 76+ digits of precision (the 77th digit is partial) and 38 digits of scale -
BOOLEAN
A Boolean value (true or false). -
TIMESTAMP
Represents an absolute point in time, with microsecond precision. -
DATE
Represents a logical calendar date. Note, support for this type is limited in legacy SQL. -
GEOGRAPHY
Represents a set of geographic points, represented as a Well Known Text (WKT) string. -
TIME
Represents a time, independent of a specific date, to microsecond precision. Note, support for this type is limited in legacy SQL. -
DATETIME
Represents a year, month, day, hour, minute, second, and subsecond (microsecond precision). Note, support for this type is limited in legacy SQL. -
RECORD
A record type with a nested schema. -
JSON
Represents JSON data -
INTERVAL
Represents duration or amount of time. -
RANGE
Represents a contiguous range of values.
-
-
Method Details
-
getStandardType
Provides the standard SQL type name equivalent to this type name. -
legacySQLTypeName
Converts StandardSQLTypeName to LegacySQLTypeName -
valueOfStrict
Get the LegacySQLTypeName for the given String constant, and throw an exception if the constant is not recognized. -
valueOf
Get the LegacySQLTypeName for the given String constant, and allow unrecognized values. -
values
Return the known values for LegacySQLTypeName.
-