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