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
public class FormatOptions extends Object implements Serializable
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:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AvroOptionsavro()Default options for AVRO format.static FormatOptionsbigtable()Default options for BIGTABLE format.static CsvOptionscsv()Default options for CSV format.static FormatOptionsdatastoreBackup()Default options for DATASTORE_BACKUP format.booleanequals(Object obj)StringgetType()Returns the external data format, as a string.static FormatOptionsgoogleSheets()Default options for GOOGLE_SHEETS format.inthashCode()static FormatOptionsiceberg()Default options for the Apache Iceberg table format.static FormatOptionsjson()Default options for NEWLINE_DELIMITED_JSON format.static FormatOptionsof(String format)Default options for the provided format.static FormatOptionsorc()Default options for the ORC format.static FormatOptionsparquet()Default options for PARQUET format.StringtoString()
-
-
-
Method Detail
-
getType
public String getType()
Returns the external data format, as a string.
-
csv
public static CsvOptions csv()
Default options for CSV format.
-
json
public static FormatOptions json()
Default options for NEWLINE_DELIMITED_JSON format.
-
datastoreBackup
public static FormatOptions datastoreBackup()
Default options for DATASTORE_BACKUP format.
-
avro
public static AvroOptions avro()
Default options for AVRO format.
-
bigtable
public static FormatOptions bigtable()
Default options for BIGTABLE format.
-
googleSheets
public static FormatOptions googleSheets()
Default options for GOOGLE_SHEETS format.
-
parquet
public static FormatOptions parquet()
Default options for PARQUET format.
-
orc
public static FormatOptions orc()
Default options for the ORC format.
-
iceberg
public static FormatOptions iceberg()
Default options for the Apache Iceberg table format.
-
of
public static FormatOptions of(String format)
Default options for the provided format.
-
-