Class FieldList (2.44.0)

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.

Inheritance

java.lang.Object > java.util.AbstractCollection > AbstractList > FieldList

Implements

Serializable

Static 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.

Parameter
Name Description
fields Field[]

the schema fields

Returns
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.

Parameter
Name Description
fields Iterable<Field>

the schema fields

Returns
Type Description
FieldList

Methods

get(int index)

public Field get(int index)

Get schema field by index.

Parameter
Name Description
index int

field (column) index

Returns
Type Description
Field
Overrides

get(String name)

public Field get(String name)

Get schema field by name.

Parameter
Name Description
name String

field (column) name

Returns
Type Description
Field

getIndex(String name)

public int getIndex(String name)

Get schema field's index by name.

Parameter
Name Description
name String

field (column) name

Returns
Type Description
int

size()

public int size()

Total number of fields (columns) in the schema.

Returns
Type Description
int
Overrides