public final class CsvOptions extends FormatOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
CsvOptions.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
allowJaggedRows()
Returns whether BigQuery should accept rows that are missing trailing optional columns.
|
Boolean |
allowQuotedNewLines()
Returns whether BigQuery should allow quoted data sections that contain newline characters in a
CSV file.
|
static CsvOptions.Builder |
builder()
Returns a builder for a CsvOptions object.
|
String |
encoding()
Returns the character encoding of the data.
|
boolean |
equals(Object obj) |
String |
fieldDelimiter()
Returns the separator for fields in a CSV file.
|
int |
hashCode() |
String |
quote()
Returns the value that is used to quote data sections in a CSV file.
|
Integer |
skipLeadingRows()
Returns the number of rows at the top of a CSV file that BigQuery will skip when reading the
data.
|
CsvOptions.Builder |
toBuilder()
Returns a builder for the
CsvOptions object. |
String |
toString() |
csv, datastoreBackup, json, of, typepublic 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 the number of bad
records exceeds ExternalTableDefinition.maxBadRecords(), an invalid error is returned
in the job result.public Boolean allowQuotedNewLines()
public String encoding()
quote() and fieldDelimiter().public String fieldDelimiter()
public String quote()
public Integer skipLeadingRows()
public CsvOptions.Builder toBuilder()
CsvOptions object.public String toString()
toString in class FormatOptionspublic int hashCode()
hashCode in class FormatOptionspublic boolean equals(Object obj)
equals in class FormatOptionspublic static CsvOptions.Builder builder()
Copyright © 2016 Google. All rights reserved.