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.
|
boolean |
equals(Object obj) |
String |
getEncoding()
Returns the character encoding of the data.
|
String |
getFieldDelimiter()
Returns the separator for fields in a CSV file.
|
String |
getQuote()
Returns the value that is used to quote data sections in a CSV file.
|
Long |
getSkipLeadingRows()
Returns the number of rows at the top of a CSV file that BigQuery will skip when reading the
data.
|
int |
hashCode() |
static CsvOptions.Builder |
newBuilder()
Returns a builder for a CsvOptions object.
|
CsvOptions.Builder |
toBuilder()
Returns a builder for the
CsvOptions object. |
String |
toString() |
avro, bigtable, csv, datastoreBackup, getType, googleSheets, json, of, orc, parquet
public 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.getMaxBadRecords()
, an invalid error is
returned in the job result.public Boolean allowQuotedNewLines()
public String getEncoding()
getQuote()
and getFieldDelimiter()
.public String getFieldDelimiter()
public String getQuote()
public Long getSkipLeadingRows()
public CsvOptions.Builder toBuilder()
CsvOptions
object.public String toString()
toString
in class FormatOptions
public int hashCode()
hashCode
in class FormatOptions
public boolean equals(Object obj)
equals
in class FormatOptions
public static CsvOptions.Builder newBuilder()
Copyright © 2019 Google LLC. All rights reserved.