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 classStandardSQLDataType.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 StandardSQLDataTypegetArrayElementType()Returns the type of an ARRAY's elements.abstract StandardSQLStructTypegetStructType()Returns the struct definition's list of fields for a STRUCT type.abstract StringgetTypeKind()Returns the type kind of the data type.static StandardSQLDataType.BuildernewBuilder()static StandardSQLDataType.BuildernewBuilder(StandardSQLTypeName typeName)Returns a new builder initialized with a StandardSQLTypeName as the type kind.static StandardSQLDataType.BuildernewBuilder(String typeKind)Returns a new builder initialized with the type kind.abstract StandardSQLDataType.BuildertoBuilder()
-
-
-
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.
-
-