Class FieldValueList (2.47.0)

publicclass FieldValueListextendsAbstractList<FieldValue>implementsSerializable

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

Inherited Members

Static Methods

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

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

Creates an instance of FieldValueList, useful for testing.

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

Parameters
Name Description
row List<FieldValue>
schema Field[]
Returns
Type Description
FieldValueList

of(List<FieldValue> row, FieldList schema)

publicstaticFieldValueListof(List<FieldValue>row,FieldListschema)

Creates an instance of FieldValueList, useful for testing.

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

Parameters
Name Description
row List<FieldValue>
schema FieldList
Returns
Type Description
FieldValueList

Methods

get(int index)

publicFieldValueget(intindex)

Gets field value by index.

Parameter
Name Description
index int

field value index

Returns
Type Description
FieldValue
Overrides

get(String name)

publicFieldValueget(Stringname)

Gets field value by index.

Parameter
Name Description
name String

field name (defined in schema)

Returns
Type Description
FieldValue

hasSchema()

publicbooleanhasSchema()

Returns true if schema is provided, false otherwise.

Returns
Type Description
boolean

size()

publicintsize()

Returns the total number of field values in the row.

Returns
Type Description
int
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.