public final class Field extends Object implements Serializable
Field.Type.integer()
, Field.Type.bool()
, Field.Type.string()
,
Field.Type.floatingPoint()
, Field.Type.timestamp()
and Field.Type.record(Field...)
. One or
more fields form a table's schema.Modifier and Type | Class and Description |
---|---|
static class |
Field.Builder |
static class |
Field.Mode
Mode for a BigQuery Table field.
|
static class |
Field.Type
Data Types for a BigQuery Table field.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDescription()
Returns the field description.
|
List<Field> |
getFields()
Returns the list of sub-fields if
getType() is a LegacySQLTypeName.RECORD . |
Field.Mode |
getMode()
Returns the field mode.
|
String |
getName()
Returns the field name.
|
Field.Type |
getType()
Returns the field value.
|
int |
hashCode() |
static Field.Builder |
newBuilder(String name,
Field.Type type)
Returns a builder for a Field object with given name and value.
|
static Field |
of(String name,
Field.Type type)
Returns a Field object with given name and value.
|
Field.Builder |
toBuilder()
Returns a builder for the
Field object. |
String |
toString() |
public String getName()
public Field.Type getType()
public Field.Mode getMode()
Field.Mode.NULLABLE
is used.public String getDescription()
public Field.Builder toBuilder()
Field
object.public static Field of(String name, Field.Type type)
public static Field.Builder newBuilder(String name, Field.Type type)
Copyright © 2017 Google. All rights reserved.