Package com.google.cloud.bigquery
Class StandardSQLDataType
- java.lang.Object
-
- com.google.cloud.bigquery.StandardSQLDataType
-
- All Implemented Interfaces:
Serializable
public abstract class StandardSQLDataType extends Object implements Serializable
Represents Standard SQL data type information.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StandardSQLDataType.Builder
-
Constructor Summary
Constructors Constructor Description StandardSQLDataType()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StandardSQLDataType
getArrayElementType()
Returns the type of an ARRAY's elements.abstract StandardSQLStructType
getStructType()
Returns the struct definition's list of fields for a STRUCT type.abstract String
getTypeKind()
Returns the type kind of the data type.static StandardSQLDataType.Builder
newBuilder()
static StandardSQLDataType.Builder
newBuilder(StandardSQLTypeName typeName)
Returns a new builder initialized with a StandardSQLTypeName as the type kind.static StandardSQLDataType.Builder
newBuilder(String typeKind)
Returns a new builder initialized with the type kind.abstract StandardSQLDataType.Builder
toBuilder()
-
-
-
Method Detail
-
getTypeKind
public abstract String getTypeKind()
Returns the type kind of the data type.Can be any standard SQL data type. For more information, see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types
-
getArrayElementType
@Nullable public abstract StandardSQLDataType getArrayElementType()
Returns the type of an ARRAY's elements.
-
getStructType
@Nullable public abstract StandardSQLStructType getStructType()
Returns the struct definition's list of fields for a STRUCT type.
-
toBuilder
public abstract StandardSQLDataType.Builder toBuilder()
-
newBuilder
public static StandardSQLDataType.Builder newBuilder()
-
newBuilder
public static StandardSQLDataType.Builder newBuilder(String typeKind)
Returns a new builder initialized with the type kind.
-
newBuilder
public static StandardSQLDataType.Builder newBuilder(StandardSQLTypeName typeName)
Returns a new builder initialized with a StandardSQLTypeName as the type kind.
-
-