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 |
|---|---|
static Field.Builder |
builder(String name,
Field.Type type)
Returns a builder for a Field object with given name and value.
|
String |
description()
Returns the field description.
|
boolean |
equals(Object obj) |
List<Field> |
fields()
Returns the list of sub-fields if
type() is a Field.Type.Value.RECORD. |
int |
hashCode() |
Field.Mode |
mode()
Returns the field mode.
|
String |
name()
Returns the field name.
|
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() |
Field.Type |
type()
Returns the field value.
|
public String name()
public Field.Type type()
public Field.Mode mode()
Field.Mode.NULLABLE is used.public String description()
public Field.Builder toBuilder()
Field object.public static Field of(String name, Field.Type type)
public static Field.Builder builder(String name, Field.Type type)
Copyright © 2016 Google. All rights reserved.