Send feedback
Class Field (2.40.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.40.2 keyboard_arrow_down
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.
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.
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.
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.
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.
Returns
Type
Description
Field
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.
Returns
Type
Description
Field
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.
Returns
Type
Description
Field
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.
Returns
Type
Description
Field
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getCollation()
public String getCollation ()
Returns
Type
Description
String
getDefaultValueExpression()
public String getDefaultValueExpression ()
Return the default value of the field.
Returns
Type
Description
String
getDescription()
public String getDescription ()
Returns the field description.
Returns
Type
Description
String
getMaxLength()
public Long getMaxLength ()
Returns the maximum length of the field for STRING or BYTES type.
Returns
Type
Description
Long
getMode()
public Field . Mode getMode ()
Returns the field mode. By default Mode#NULLABLE is used.
getName()
Returns
Type
Description
String
public PolicyTags getPolicyTags ()
Returns the policy tags for the field.
getPrecision()
public Long getPrecision ()
Returns the maximum number of total digits allowed for NUMERIC or BIGNUMERIC types.
Returns
Type
Description
Long
getRangeElementType()
public FieldElementType getRangeElementType ()
Return the range element type the field.
getScale()
Returns the maximum number of digits set in the fractional part of a NUMERIC or BIGNUMERIC
type.
Returns
Type
Description
Long
getSubFields()
public FieldList getSubFields ()
getType()
public LegacySQLTypeName getType ()
hashCode()
Returns
Type
Description
int
Overrides
toBuilder()
public Field . Builder toBuilder ()
Returns a builder for the Field
object.
toString()
Returns
Type
Description
String
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-06 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-06 UTC."],[],[]]