public static final class CsvOptions.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
CsvOptions.Builder |
allowJaggedRows(Boolean allowJaggedRows)
Set whether BigQuery should accept rows that are missing trailing optional columns.
|
CsvOptions.Builder |
allowQuotedNewLines(Boolean allowQuotedNewLines)
Sets whether BigQuery should allow quoted data sections that contain newline characters in a
CSV file.
|
CsvOptions |
build()
Creates a
CsvOptions object. |
CsvOptions.Builder |
encoding(Charset encoding)
Sets the character encoding of the data.
|
CsvOptions.Builder |
encoding(String encoding)
Sets the character encoding of the data.
|
CsvOptions.Builder |
fieldDelimiter(String fieldDelimiter)
Sets the separator for fields in a CSV file.
|
CsvOptions.Builder |
quote(String quote)
Sets the value that is used to quote data sections in a CSV file.
|
CsvOptions.Builder |
skipLeadingRows(Integer skipLeadingRows)
Sets the number of rows at the top of a CSV file that BigQuery will skip when reading the
data.
|
public CsvOptions.Builder allowJaggedRows(Boolean allowJaggedRows)
true, BigQuery treats missing trailing columns as null values. If false,
records with missing trailing columns are treated as bad records, and if there are too many
bad records, an invalid error is returned in the job result. By default, rows with missing
trailing columns are considered bad records.public CsvOptions.Builder allowQuotedNewLines(Boolean allowQuotedNewLines)
public CsvOptions.Builder encoding(String encoding)
quote(String) and fieldDelimiter(String).public CsvOptions.Builder encoding(Charset encoding)
quote(String) and fieldDelimiter(String).public CsvOptions.Builder fieldDelimiter(String fieldDelimiter)
public CsvOptions.Builder quote(String quote)
allowQuotedNewLines(Boolean)
property to true.public CsvOptions.Builder skipLeadingRows(Integer skipLeadingRows)
public CsvOptions build()
CsvOptions object.Copyright © 2016 Google. All rights reserved.