BigQuery API v2 (revision 83)



com.google.api.services.bigquery.model
Class JobConfigurationExtract

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.bigquery.model.JobConfigurationExtract
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class JobConfigurationExtract
extends GenericJson

Model definition for JobConfigurationExtract.

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: http://code.google.com/p/google-api-java-client/wiki/Json

Author:
Google, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
JobConfigurationExtract()
           
 
Method Summary
 JobConfigurationExtract clone()
           
 String getDestinationFormat()
          [Experimental] Optional and defaults to CSV.
 String getDestinationUri()
          [Required] The fully-qualified Google Cloud Storage URI where the extracted table should be written.
 String getFieldDelimiter()
          [Optional] Delimiter to use between fields in the exported data.
 Boolean getPrintHeader()
          [Optional] Whether to print out a heder row in the results.
 TableReference getSourceTable()
          [Required] A reference to the table being exported.
 JobConfigurationExtract set(String fieldName, Object value)
           
 JobConfigurationExtract setDestinationFormat(String destinationFormat)
          [Experimental] Optional and defaults to CSV.
 JobConfigurationExtract setDestinationUri(String destinationUri)
          [Required] The fully-qualified Google Cloud Storage URI where the extracted table should be written.
 JobConfigurationExtract setFieldDelimiter(String fieldDelimiter)
          [Optional] Delimiter to use between fields in the exported data.
 JobConfigurationExtract setPrintHeader(Boolean printHeader)
          [Optional] Whether to print out a heder row in the results.
 JobConfigurationExtract setSourceTable(TableReference sourceTable)
          [Required] A reference to the table being exported.
 
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JobConfigurationExtract

public JobConfigurationExtract()
Method Detail

getDestinationFormat

public String getDestinationFormat()
[Experimental] Optional and defaults to CSV. Format with which files should be exported. To export to CSV, specify "CSV". Tables with nested or repeated fields cannot be exported as CSV. To export to newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON".

Returns:
value or null for none

setDestinationFormat

public JobConfigurationExtract setDestinationFormat(String destinationFormat)
[Experimental] Optional and defaults to CSV. Format with which files should be exported. To export to CSV, specify "CSV". Tables with nested or repeated fields cannot be exported as CSV. To export to newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON".

Parameters:
destinationFormat - destinationFormat or null for none

getDestinationUri

public String getDestinationUri()
[Required] The fully-qualified Google Cloud Storage URI where the extracted table should be written.

Returns:
value or null for none

setDestinationUri

public JobConfigurationExtract setDestinationUri(String destinationUri)
[Required] The fully-qualified Google Cloud Storage URI where the extracted table should be written.

Parameters:
destinationUri - destinationUri or null for none

getFieldDelimiter

public String getFieldDelimiter()
[Optional] Delimiter to use between fields in the exported data. Default is ','

Returns:
value or null for none

setFieldDelimiter

public JobConfigurationExtract setFieldDelimiter(String fieldDelimiter)
[Optional] Delimiter to use between fields in the exported data. Default is ','

Parameters:
fieldDelimiter - fieldDelimiter or null for none

getPrintHeader

public Boolean getPrintHeader()
[Optional] Whether to print out a heder row in the results. Default is true.

Returns:
value or null for none

setPrintHeader

public JobConfigurationExtract setPrintHeader(Boolean printHeader)
[Optional] Whether to print out a heder row in the results. Default is true.

Parameters:
printHeader - printHeader or null for none

getSourceTable

public TableReference getSourceTable()
[Required] A reference to the table being exported.

Returns:
value or null for none

setSourceTable

public JobConfigurationExtract setSourceTable(TableReference sourceTable)
[Required] A reference to the table being exported.

Parameters:
sourceTable - sourceTable or null for none

set

public JobConfigurationExtract set(String fieldName,
                                   Object value)
Overrides:
set in class GenericJson

clone

public JobConfigurationExtract clone()
Overrides:
clone in class GenericJson