public final class FieldList extends AbstractList<Field> implements Serializable
Google BigQuery Table schema fields (columns). Each field has a unique name and index. Fields with duplicate names are not allowed in BigQuery schema.
Implements
SerializableStatic Methods
of(Field[] fields)
public static FieldList of(Field[] fields)
Returns a new FieldList
object, which contains a collection of Field
objects in
preserved order and represent schema columns.
Name | Description |
fields | Field[] the schema fields |
Type | Description |
FieldList |
of(Iterable<Field> fields)
public static FieldList of(Iterable<Field> fields)
Returns a new FieldList
object, which contains a collection of Field
objects in
preserved order and represent schema columns.
Name | Description |
fields | Iterable<Field> the schema fields |
Type | Description |
FieldList |
Methods
get(int index)
public Field get(int index)
Get schema field by index.
Name | Description |
index | int field (column) index |
Type | Description |
Field |
get(String name)
public Field get(String name)
Get schema field by name.
Name | Description |
name | String field (column) name |
Type | Description |
Field |
getIndex(String name)
public int getIndex(String name)
Get schema field's index by name.
Name | Description |
name | String field (column) name |
Type | Description |
int |
size()
public int size()
Total number of fields (columns) in the schema.
Type | Description |
int |