Package com.google.cloud.bigquery
Class FormatOptions
java.lang.Object
com.google.cloud.bigquery.FormatOptions
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AvroOptions
,BigtableOptions
,CsvOptions
,DatastoreBackupOptions
,GoogleSheetsOptions
,ParquetOptions
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
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic AvroOptions
avro()
Default options for AVRO format.static FormatOptions
bigtable()
Default options for BIGTABLE format.static CsvOptions
csv()
Default options for CSV format.static FormatOptions
Default options for DATASTORE_BACKUP format.boolean
getType()
Returns the external data format, as a string.static FormatOptions
Default options for GOOGLE_SHEETS format.int
hashCode()
static FormatOptions
iceberg()
Default options for the Apache Iceberg table format.static FormatOptions
json()
Default options for NEWLINE_DELIMITED_JSON format.static FormatOptions
Default options for the provided format.static FormatOptions
orc()
Default options for the ORC format.static FormatOptions
parquet()
Default options for PARQUET format.toString()
-
Method Details
-
getType
Returns the external data format, as a string. -
toString
-
hashCode
public int hashCode() -
equals
-
csv
Default options for CSV format. -
json
Default options for NEWLINE_DELIMITED_JSON format. -
datastoreBackup
Default options for DATASTORE_BACKUP format. -
avro
Default options for AVRO format. -
bigtable
Default options for BIGTABLE format. -
googleSheets
Default options for GOOGLE_SHEETS format. -
parquet
Default options for PARQUET format. -
orc
Default options for the ORC format. -
iceberg
Default options for the Apache Iceberg table format. -
of
Default options for the provided format.
-