public final class CsvOptions extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the BigQuery API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
CsvOptions() |
Modifier and Type | Method and Description |
---|---|
CsvOptions |
clone() |
Boolean |
getAllowJaggedRows()
[Optional] Indicates if BigQuery should accept rows that are missing trailing optional columns.
|
Boolean |
getAllowQuotedNewlines()
[Optional] Indicates if BigQuery should allow quoted data sections that contain newline
characters in a CSV file.
|
String |
getEncoding()
[Optional] The character encoding of the data.
|
String |
getFieldDelimiter()
[Optional] The separator for fields in a CSV file.
|
String |
getQuote()
[Optional] The value that is used to quote data sections in a CSV file.
|
Long |
getSkipLeadingRows()
[Optional] The number of rows at the top of a CSV file that BigQuery will skip when reading the
data.
|
CsvOptions |
set(String fieldName,
Object value) |
CsvOptions |
setAllowJaggedRows(Boolean allowJaggedRows)
[Optional] Indicates if BigQuery should accept rows that are missing trailing optional columns.
|
CsvOptions |
setAllowQuotedNewlines(Boolean allowQuotedNewlines)
[Optional] Indicates if BigQuery should allow quoted data sections that contain newline
characters in a CSV file.
|
CsvOptions |
setEncoding(String encoding)
[Optional] The character encoding of the data.
|
CsvOptions |
setFieldDelimiter(String fieldDelimiter)
[Optional] The separator for fields in a CSV file.
|
CsvOptions |
setQuote(String quote)
[Optional] The value that is used to quote data sections in a CSV file.
|
CsvOptions |
setSkipLeadingRows(Long skipLeadingRows)
[Optional] The number of rows at the top of a CSV file that BigQuery will skip when reading the
data.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Boolean getAllowJaggedRows()
null
for nonepublic CsvOptions setAllowJaggedRows(Boolean allowJaggedRows)
allowJaggedRows
- allowJaggedRows or null
for nonepublic Boolean getAllowQuotedNewlines()
null
for nonepublic CsvOptions setAllowQuotedNewlines(Boolean allowQuotedNewlines)
allowQuotedNewlines
- allowQuotedNewlines or null
for nonepublic String getEncoding()
null
for nonepublic CsvOptions setEncoding(String encoding)
encoding
- encoding or null
for nonepublic String getFieldDelimiter()
null
for nonepublic CsvOptions setFieldDelimiter(String fieldDelimiter)
fieldDelimiter
- fieldDelimiter or null
for nonepublic String getQuote()
null
for nonepublic CsvOptions setQuote(String quote)
quote
- quote or null
for nonepublic Long getSkipLeadingRows()
null
for nonepublic CsvOptions setSkipLeadingRows(Long skipLeadingRows)
skipLeadingRows
- skipLeadingRows or null
for nonepublic CsvOptions set(String fieldName, Object value)
set
in class GenericJson
public CsvOptions clone()
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.