public class FormatOptions extends Object implements Serializable
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
Modifier and Type | Method and Description |
---|---|
static FormatOptions |
avro()
Default options for AVRO format.
|
static FormatOptions |
bigtable()
Default options for BIGTABLE format.
|
static CsvOptions |
csv()
Default options for CSV format.
|
static FormatOptions |
datastoreBackup()
Default options for DATASTORE_BACKUP format.
|
boolean |
equals(Object obj) |
String |
getType()
Returns the external data format, as a string.
|
static FormatOptions |
googleSheets()
Default options for GOOGLE_SHEETS format.
|
int |
hashCode() |
static FormatOptions |
json()
Default options for NEWLINE_DELIMITED_JSON format.
|
static FormatOptions |
of(String format)
Default options for the provided format.
|
static FormatOptions |
orc()
Default options for the ORC format.
|
static FormatOptions |
parquet()
Default options for PARQUET format.
|
String |
toString() |
public String getType()
public static CsvOptions csv()
public static FormatOptions json()
public static FormatOptions datastoreBackup()
public static FormatOptions avro()
public static FormatOptions bigtable()
public static FormatOptions googleSheets()
public static FormatOptions parquet()
public static FormatOptions orc()
public static FormatOptions of(String format)
Copyright © 2019 Google LLC. All rights reserved.