public final class Field extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Field.Builder |
static class |
Field.Mode
Mode for a BigQuery Table field.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCollation() |
String |
getDefaultValueExpression()
Return the default value of the field.
|
String |
getDescription()
Returns the field description.
|
Long |
getMaxLength()
Returns the maximum length of the field for STRING or BYTES type.
|
Field.Mode |
getMode()
Returns the field mode.
|
String |
getName()
Returns the field name.
|
PolicyTags |
getPolicyTags()
Returns the policy tags for the field.
|
Long |
getPrecision()
Returns the maximum number of total digits allowed for NUMERIC or BIGNUMERIC types.
|
Long |
getScale()
Returns the maximum number of digits set in the fractional part of a NUMERIC or BIGNUMERIC
type.
|
FieldList |
getSubFields()
Returns the list of sub-fields if
getType() is a LegacySQLTypeName.RECORD . |
LegacySQLTypeName |
getType()
Returns the field type.
|
int |
hashCode() |
static Field.Builder |
newBuilder(String name,
LegacySQLTypeName type,
Field... subFields)
Returns a builder for a Field object with given name and type.
|
static Field.Builder |
newBuilder(String name,
LegacySQLTypeName type,
FieldList subFields)
Returns a builder for a Field object with given name and type.
|
static Field.Builder |
newBuilder(String name,
StandardSQLTypeName type,
Field... subFields)
Returns a builder for a Field object with given name and type.
|
static Field.Builder |
newBuilder(String name,
StandardSQLTypeName type,
FieldList subFields)
Returns a builder for a Field object with given name and type.
|
static Field |
of(String name,
LegacySQLTypeName type,
Field... subFields)
Returns a Field object with given name and type.
|
static Field |
of(String name,
LegacySQLTypeName type,
FieldList subFields)
Returns a Field object with given name and type.
|
static Field |
of(String name,
StandardSQLTypeName type,
Field... subFields)
Returns a Field object with given name and type.
|
static Field |
of(String name,
StandardSQLTypeName type,
FieldList subFields)
Returns a Field object with given name and type.
|
Field.Builder |
toBuilder()
Returns a builder for the
Field object. |
String |
toString() |
public String getName()
public LegacySQLTypeName getType()
public Field.Mode getMode()
Field.Mode.NULLABLE
is used.public String getDescription()
public PolicyTags getPolicyTags()
public Long getMaxLength()
public Long getScale()
public Long getPrecision()
public String getDefaultValueExpression()
public String getCollation()
public FieldList getSubFields()
public Field.Builder toBuilder()
Field
object.public static Field of(String name, LegacySQLTypeName type, Field... subFields)
public static Field of(String name, StandardSQLTypeName type, Field... subFields)
public static Field of(String name, LegacySQLTypeName type, FieldList subFields)
public static Field of(String name, StandardSQLTypeName type, FieldList subFields)
public static Field.Builder newBuilder(String name, LegacySQLTypeName type, Field... subFields)
public static Field.Builder newBuilder(String name, StandardSQLTypeName type, Field... subFields)
public static Field.Builder newBuilder(String name, LegacySQLTypeName type, FieldList subFields)
public static Field.Builder newBuilder(String name, StandardSQLTypeName type, FieldList subFields)
Copyright © 2023 Google LLC. All rights reserved.