Class FieldValueList (2.14.6)

public class FieldValueList extends AbstractList<FieldValue> implements Serializable

Google BigQuery Table Field Values class, which represents a row in returned query result (table row). Tables rows can be retrieved as a result of a query or when listing table data.

Depending on how a corresponding query was executed, each row (an instance of FieldValueList) may or may not contain related schema. If schema is not provided, the individual cells of the row will still be accessible by index but not by name.

Inheritance

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

Implements

Serializable

Static Methods

of(List<FieldValue> row, Field[] schema)

public static FieldValueList of(List<FieldValue> row, Field[] schema)

Creates an instance of FieldValueList, useful for testing.

This method is unstable. See this discussion for more context.

Parameters
NameDescription
rowList<FieldValue>
schemaField[]
Returns
TypeDescription
FieldValueList

of(List<FieldValue> row, FieldList schema)

public static FieldValueList of(List<FieldValue> row, FieldList schema)

Creates an instance of FieldValueList, useful for testing.

This method is unstable. See this discussion for more context.

Parameters
NameDescription
rowList<FieldValue>
schemaFieldList
Returns
TypeDescription
FieldValueList

Methods

get(int index)

public FieldValue get(int index)

Gets field value by index.

Parameter
NameDescription
indexint

field value index

Returns
TypeDescription
FieldValue
Overrides

get(String name)

public FieldValue get(String name)

Gets field value by index.

Parameter
NameDescription
nameString

field name (defined in schema)

Returns
TypeDescription
FieldValue

hasSchema()

public boolean hasSchema()

Returns true if schema is provided, false otherwise.

Returns
TypeDescription
boolean

size()

public int size()

Returns the total number of field values in the row.

Returns
TypeDescription
int
Overrides