Class StandardSQLDataType (2.37.2)

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
TypeDescription
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
NameDescription
typeNameStandardSQLTypeName
Returns
TypeDescription
StandardSQLDataType.Builder

newBuilder(String typeKind)

public static StandardSQLDataType.Builder newBuilder(String typeKind)

Returns a new builder initialized with the type kind.

Parameter
NameDescription
typeKindString
Returns
TypeDescription
StandardSQLDataType.Builder

Constructors

StandardSQLDataType()

public StandardSQLDataType()

Methods

getArrayElementType()

public abstract StandardSQLDataType getArrayElementType()

Returns the type of an ARRAY's elements.

Returns
TypeDescription
StandardSQLDataType

getStructType()

public abstract StandardSQLStructType getStructType()

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

Returns
TypeDescription
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
TypeDescription
String

toBuilder()

public abstract StandardSQLDataType.Builder toBuilder()
Returns
TypeDescription
StandardSQLDataType.Builder