Class StandardSQLDataType (2.43.0)

public abstract class StandardSQLDataType implements Serializable

Represents Standard SQL data type information.

Inheritance

java.lang.Object > StandardSQLDataType

Implements

Serializable

Static Methods

newBuilder()

public static StandardSQLDataType.Builder newBuilder()
Returns
Type Description
StandardSQLDataType.Builder

newBuilder(StandardSQLTypeName typeName)

public static StandardSQLDataType.Builder newBuilder(StandardSQLTypeName typeName)

Returns a new builder initialized with a StandardSQLTypeName as the type kind.

Parameter
Name Description
typeName StandardSQLTypeName
Returns
Type Description
StandardSQLDataType.Builder

newBuilder(String typeKind)

public static StandardSQLDataType.Builder newBuilder(String typeKind)

Returns a new builder initialized with the type kind.

Parameter
Name Description
typeKind String
Returns
Type Description
StandardSQLDataType.Builder

Constructors

StandardSQLDataType()

public StandardSQLDataType()

Methods

getArrayElementType()

public abstract StandardSQLDataType getArrayElementType()

Returns the type of an ARRAY's elements.

Returns
Type Description
StandardSQLDataType

getStructType()

public abstract StandardSQLStructType getStructType()

Returns the struct definition's list of fields for a STRUCT type.

Returns
Type Description
StandardSQLStructType

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

Returns
Type Description
String

toBuilder()

public abstract StandardSQLDataType.Builder toBuilder()
Returns
Type Description
StandardSQLDataType.Builder