Class FormatOptions (2.35.0)

publicclass FormatOptionsimplementsSerializable

Base class for Google BigQuery format options. These class define the format of external data used by BigQuery, for either federated tables or load jobs.

Load jobs support the following formats: AVRO, CSV, DATASTORE_BACKUP, GOOGLE_SHEETS, JSON, ORC, PARQUET

Federated tables can be defined against following formats: AVRO, BIGTABLE, CSV, DATASTORE_BACKUP, GOOGLE_SHEETS, JSON

Inheritance

Object > FormatOptions

Implements

Serializable

Static Methods

avro()

publicstaticAvroOptionsavro()

Default options for AVRO format.

Returns
Type Description
AvroOptions

bigtable()

publicstaticFormatOptionsbigtable()

Default options for BIGTABLE format.

Returns
Type Description
FormatOptions

csv()

publicstaticCsvOptionscsv()

Default options for CSV format.

Returns
Type Description
CsvOptions

datastoreBackup()

publicstaticFormatOptionsdatastoreBackup()

Default options for DATASTORE_BACKUP format.

Returns
Type Description
FormatOptions

googleSheets()

publicstaticFormatOptionsgoogleSheets()

Default options for GOOGLE_SHEETS format.

Returns
Type Description
FormatOptions

iceberg()

publicstaticFormatOptionsiceberg()

Default options for the Apache Iceberg table format.

Returns
Type Description
FormatOptions

json()

publicstaticFormatOptionsjson()

Default options for NEWLINE_DELIMITED_JSON format.

Returns
Type Description
FormatOptions

of(String format)

publicstaticFormatOptionsof(Stringformat)

Default options for the provided format.

Parameter
Name Description
format String
Returns
Type Description
FormatOptions

orc()

publicstaticFormatOptionsorc()

Default options for the ORC format.

Returns
Type Description
FormatOptions

parquet()

publicstaticFormatOptionsparquet()

Default options for PARQUET format.

Returns
Type Description
FormatOptions

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getType()

publicStringgetType()

Returns the external data format, as a string.

Returns
Type Description
String

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

toString()

publicStringtoString()
Returns
Type Description
String
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.