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()
Deprecated.
|
String |
encoding()
Deprecated.
|
boolean |
equals(Object obj) |
String |
fieldDelimiter()
Deprecated.
|
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.
|
String |
quote()
Deprecated.
|
Long |
skipLeadingRows()
Deprecated.
|
CsvOptions.Builder |
toBuilder()
Returns a builder for the
CsvOptions object. |
String |
toString() |
csv, datastoreBackup, getType, json, of, type
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.maxBadRecords()
, an invalid error is returned
in the job result.public Boolean allowQuotedNewLines()
@Deprecated public String encoding()
getQuote()
and getFieldDelimiter()
.public String getEncoding()
getQuote()
and getFieldDelimiter()
.@Deprecated public String fieldDelimiter()
public String getFieldDelimiter()
@Deprecated public String quote()
public String getQuote()
@Deprecated public Long skipLeadingRows()
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
@Deprecated public static CsvOptions.Builder builder()
public static CsvOptions.Builder newBuilder()
Copyright © 2016 Google. All rights reserved.