Class CsvOptions (2.38.1)

public final class CsvOptions extends FormatOptions

Google BigQuery options for CSV format. This class wraps some properties of CSV files used by BigQuery to parse external data.

Inheritance

Object > FormatOptions > CsvOptions

Static Methods

newBuilder()

public static CsvOptions.Builder newBuilder()

Returns a builder for a CsvOptions object.

Returns
TypeDescription
CsvOptions.Builder

Methods

allowJaggedRows()

public Boolean allowJaggedRows()

Returns whether BigQuery should accept rows that are missing trailing optional columns. If 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.

Returns
TypeDescription
Boolean

allowQuotedNewLines()

public Boolean allowQuotedNewLines()

Returns whether BigQuery should allow quoted data sections that contain newline characters in a CSV file.

Returns
TypeDescription
Boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getEncoding()

public String getEncoding()

Returns the character encoding of the data. The supported values are UTF-8 or ISO-8859-1. If not set, UTF-8 is used. BigQuery decodes the data after the raw, binary data has been split using the values set in #getQuote() and #getFieldDelimiter().

Returns
TypeDescription
String

getFieldDelimiter()

public String getFieldDelimiter()

Returns the separator for fields in a CSV file.

Returns
TypeDescription
String

getPreserveAsciiControlCharacters()

public Boolean getPreserveAsciiControlCharacters()

Returns whether BigQuery should allow ascii control characters in a CSV file. By default ascii control characters are not allowed.

Returns
TypeDescription
Boolean

getQuote()

public String getQuote()

Returns the value that is used to quote data sections in a CSV file.

Returns
TypeDescription
String

getSkipLeadingRows()

public Long getSkipLeadingRows()

Returns the number of rows at the top of a CSV file that BigQuery will skip when reading the data.

Returns
TypeDescription
Long

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public CsvOptions.Builder toBuilder()

Returns a builder for the CsvOptions object.

Returns
TypeDescription
CsvOptions.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides