public final class Field implements Serializable
Google BigQuery Table schema field. A table field has a name, a type, a mode and possibly a
description.
Static Methods
newBuilder(String name, LegacySQLTypeName type, Field[] subFields)
public static Field.Builder newBuilder(String name, LegacySQLTypeName type, Field[] subFields)
Returns a builder for a Field object with given name and type.
Parameters
Returns
newBuilder(String name, LegacySQLTypeName type, FieldList subFields)
public static Field.Builder newBuilder(String name, LegacySQLTypeName type, FieldList subFields)
Returns a builder for a Field object with given name and type.
Parameters
Returns
newBuilder(String name, StandardSQLTypeName type, Field[] subFields)
public static Field.Builder newBuilder(String name, StandardSQLTypeName type, Field[] subFields)
Returns a builder for a Field object with given name and type.
Parameters
Returns
newBuilder(String name, StandardSQLTypeName type, FieldList subFields)
public static Field.Builder newBuilder(String name, StandardSQLTypeName type, FieldList subFields)
Returns a builder for a Field object with given name and type.
Parameters
Returns
of(String name, LegacySQLTypeName type, Field[] subFields)
public static Field of(String name, LegacySQLTypeName type, Field[] subFields)
Returns a Field object with given name and type.
Parameters
Returns
of(String name, LegacySQLTypeName type, FieldList subFields)
public static Field of(String name, LegacySQLTypeName type, FieldList subFields)
Returns a Field object with given name and type.
Parameters
Returns
of(String name, StandardSQLTypeName type, Field[] subFields)
public static Field of(String name, StandardSQLTypeName type, Field[] subFields)
Returns a Field object with given name and type.
Parameters
Returns
of(String name, StandardSQLTypeName type, FieldList subFields)
public static Field of(String name, StandardSQLTypeName type, FieldList subFields)
Returns a Field object with given name and type.
Parameters
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultValueExpression()
public String getDefaultValueExpression()
Return the default value of the field.
Returns
getDescription()
public String getDescription()
Returns the field description.
Returns
getMaxLength()
public Long getMaxLength()
Returns the maximum length of the field for STRING or BYTES type.
Returns
getMode()
public Field.Mode getMode()
Returns the field mode. By default Mode#NULLABLE is used.
Returns
getName()
Returns
public PolicyTags getPolicyTags()
Returns the policy tags for the field.
Returns
getPrecision()
public Long getPrecision()
Returns the maximum number of total digits allowed for NUMERIC or BIGNUMERIC types.
Returns
getScale()
Returns the maximum number of digits set in the fractional part of a NUMERIC or BIGNUMERIC
type.
Returns
getSubFields()
public FieldList getSubFields()
Returns
getType()
public LegacySQLTypeName getType()
Returns
hashCode()
Returns
Overrides
toBuilder()
public Field.Builder toBuilder()
Returns a builder for the Field
object.
Returns
toString()
Returns
Overrides