Send feedback
Class CsvOptions (2.37.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.37.2 keyboard_arrow_down
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.
Static Methods
newBuilder()
public static CsvOptions . Builder newBuilder ()
Returns a builder for a CsvOptions object.
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.
allowQuotedNewLines()
public Boolean allowQuotedNewLines ()
Returns whether BigQuery should allow quoted data sections that contain newline characters in a
CSV file.
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
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() .
getFieldDelimiter()
public String getFieldDelimiter ()
Returns the separator for fields in a CSV file.
getPreserveAsciiControlCharacters()
public Boolean getPreserveAsciiControlCharacters ()
Returns whether BigQuery should allow ascii control characters in a CSV file. By default ascii
control characters are not allowed.
getQuote()
Returns the value that is used to quote data sections in a CSV file.
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 Type Description Long
hashCode()
Returns Type Description int
Overrides
toBuilder()
public CsvOptions . Builder toBuilder ()
Returns a builder for the CsvOptions
object.
toString()
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-05 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{
"lastModified": "Last updated 2024-09-05 UTC.",
"confidential": False
}