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
Modifier and TypeFieldDescriptionstatic final LegacySQLTypeName
A decimal value with 76+ digits of precision (the 77th digit is partial) and 38 digits of scalestatic final LegacySQLTypeName
A Boolean value (true or false).static final LegacySQLTypeName
Variable-length binary data.static final LegacySQLTypeName
Represents a logical calendar date.static final LegacySQLTypeName
Represents a year, month, day, hour, minute, second, and subsecond (microsecond precision).static final LegacySQLTypeName
A 64-bit IEEE binary floating-point value.static final LegacySQLTypeName
Represents a set of geographic points, represented as a Well Known Text (WKT) string.static final LegacySQLTypeName
A 64-bit signed integer value.static final LegacySQLTypeName
Represents duration or amount of time.static final LegacySQLTypeName
Represents JSON datastatic final LegacySQLTypeName
A decimal value with 38 digits of precision and 9 digits of scale.static final LegacySQLTypeName
Represents a contiguous range of values.static final LegacySQLTypeName
A record type with a nested schema.static final LegacySQLTypeName
Variable-length character (Unicode) data.static final LegacySQLTypeName
Represents a time, independent of a specific date, to microsecond precision.static final LegacySQLTypeName
Represents an absolute point in time, with microsecond precision. -
Method Summary
Modifier and TypeMethodDescriptionProvides the standard SQL type name equivalent to this type name.static LegacySQLTypeName
Converts StandardSQLTypeName to LegacySQLTypeNamestatic LegacySQLTypeName
Get the LegacySQLTypeName for the given String constant, and allow unrecognized values.static LegacySQLTypeName
valueOfStrict
(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.
-