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 |
getDescription()
Returns the field description.
|
Field.Mode |
getMode()
Returns the field mode.
|
String |
getName()
Returns the field name.
|
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.
|
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 FieldList getSubFields()
public Field.Builder toBuilder()
Field
object.public static Field of(String name, LegacySQLTypeName type, Field... subFields)
public static Field of(String name, LegacySQLTypeName 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 © 2019 Google LLC. All rights reserved.