# Class ExtractJobConfiguration (2.65.0)

2.65.0 (latest) 2.62.0 2.61.0 2.60.0 2.59.0 2.58.0 2.57.2 2.56.0 2.55.3 2.54.2 2.53.0 2.52.0 2.51.0 2.50.1 2.49.0 2.48.1 2.47.0 2.46.0 2.45.0 2.44.0 2.43.3 2.42.3 2.41.0 2.40.3 2.39.1 2.38.2 2.37.2 2.36.0 2.35.0 2.34.2 2.33.2

    public final class ExtractJobConfiguration extends JobConfiguration

Google BigQuery extract job configuration. An extract job exports a BigQuery table to Google
Cloud Storage. The extract destination provided as URIs that point to objects in Google Cloud
Storage. Extract job configurations have [JobConfiguration.Type#EXTRACT](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.JobConfiguration.Type#com_google_cloud_bigquery_JobConfiguration_Type_EXTRACT) type.

## Inheritance

[Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> [JobConfiguration](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.JobConfiguration) \> ExtractJobConfiguration

## Inherited Members

[JobConfiguration.getType()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.JobConfiguration#com_google_cloud_bigquery_JobConfiguration_getType__) [JobConfiguration.toBuilder()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.JobConfiguration#com_google_cloud_bigquery_JobConfiguration_toBuilder__) [JobConfiguration.toString()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.JobConfiguration#com_google_cloud_bigquery_JobConfiguration_toString__) [Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### newBuilder(ModelId sourceModel, String destinationUri)

    public static ExtractJobConfiguration.Builder newBuilder(ModelId sourceModel, String destinationUri)

Creates a builder for a BigQuery Extract Job configuration given source model and destination
URI.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceModel` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ModelId` |
| `destinationUri` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ExtractJobConfiguration.Builder` |   |

### newBuilder(ModelId sourceModel, List\<String\> destinationUris)

    public static ExtractJobConfiguration.Builder newBuilder(ModelId sourceModel, List<String> destinationUris)

Creates a builder for a BigQuery Extract Job configuration given source model and destination
URIs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceModel` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ModelId` |
| `destinationUris` | `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ExtractJobConfiguration.Builder` |   |

### newBuilder(TableId sourceTable, String destinationUri)

    public static ExtractJobConfiguration.Builder newBuilder(TableId sourceTable, String destinationUri)

Creates a builder for a BigQuery Extract Job configuration given source table and destination
URI.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceTable` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.TableId` |
| `destinationUri` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ExtractJobConfiguration.Builder` |   |

### newBuilder(TableId sourceTable, List\<String\> destinationUris)

    public static ExtractJobConfiguration.Builder newBuilder(TableId sourceTable, List<String> destinationUris)

Creates a builder for a BigQuery Extract Job configuration given source table and destination
URIs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceTable` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.TableId` |
| `destinationUris` | `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ExtractJobConfiguration.Builder` |   |

### of(ModelId sourceModel, String destinationUri)

    public static ExtractJobConfiguration of(ModelId sourceModel, String destinationUri)

Returns a BigQuery Extract Job configuration for the given source model and destination URI.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceModel` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ModelId` |
| `destinationUri` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ExtractJobConfiguration` |   |

### of(ModelId sourceTable, String destinationUri, String format)

    public static ExtractJobConfiguration of(ModelId sourceTable, String destinationUri, String format)

Returns a BigQuery Extract Job configuration for the given source model, format and destination
URI.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceTable` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ModelId` |
| `destinationUri` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `format` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ExtractJobConfiguration` |   |

### of(ModelId sourceModel, List\<String\> destinationUris)

    public static ExtractJobConfiguration of(ModelId sourceModel, List<String> destinationUris)

Returns a BigQuery Extract Job configuration for the given source model and destination URIs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceModel` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ModelId` |
| `destinationUris` | `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ExtractJobConfiguration` |   |

### of(ModelId sourceModel, List\<String\> destinationUris, String format)

    public static ExtractJobConfiguration of(ModelId sourceModel, List<String> destinationUris, String format)

Returns a BigQuery Extract Job configuration for the given source table, format and destination
URIs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceModel` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ModelId` |
| `destinationUris` | `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |
| `format` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ExtractJobConfiguration` |   |

### of(TableId sourceTable, String destinationUri)

    public static ExtractJobConfiguration of(TableId sourceTable, String destinationUri)

Returns a BigQuery Extract Job configuration for the given source table and destination URI.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceTable` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.TableId` |
| `destinationUri` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ExtractJobConfiguration` |   |

### of(TableId sourceTable, String destinationUri, String format)

    public static ExtractJobConfiguration of(TableId sourceTable, String destinationUri, String format)

Returns a BigQuery Extract Job configuration for the given source table, format and destination
URI.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceTable` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.TableId` |
| `destinationUri` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `format` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ExtractJobConfiguration` |   |

### of(TableId sourceTable, List\<String\> destinationUris)

    public static ExtractJobConfiguration of(TableId sourceTable, List<String> destinationUris)

Returns a BigQuery Extract Job configuration for the given source table and destination URIs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceTable` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.TableId` |
| `destinationUris` | `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ExtractJobConfiguration` |   |

### of(TableId sourceTable, List\<String\> destinationUris, String format)

    public static ExtractJobConfiguration of(TableId sourceTable, List<String> destinationUris, String format)

Returns a BigQuery Extract Job configuration for the given source table, format and destination
URIs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceTable` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.TableId` |
| `destinationUris` | `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |
| `format` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ExtractJobConfiguration` |   |

## Methods

### equals(Object obj)

    public boolean equals(Object obj)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `obj` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

**Overrides** [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-)

### getCompression()

    public String getCompression()

Returns the compression value of exported files.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getDestinationUris()

    public List<String> getDestinationUris()

Returns the list of fully-qualified Google Cloud Storage URIs where the extracted table should
be written.
See Also: [Exporting Data Into One or More Files](https://cloud.google.com/bigquery/exporting-data-from-bigquery#exportingmultiple)

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getFieldDelimiter()

    public String getFieldDelimiter()

Returns the delimiter used between fields in the exported data.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getFormat()

    public String getFormat()

Returns the exported files format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getJobTimeoutMs()

    public Long getJobTimeoutMs()

Returns the timeout associated with this job

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html` |   |

### getLabels()

    public Map<String,String> getLabels()

Returns the labels associated with this job

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getReservation()

    public String getReservation()

Returns the reservation associated with this job

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getSourceModel()

    public ModelId getSourceModel()

Returns the model to export.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ModelId` |   |

### getSourceTable()

    public TableId getSourceTable()

Returns the table to export.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.TableId` |   |

### getUseAvroLogicalTypes()

    public Boolean getUseAvroLogicalTypes()

Returns True/False. Indicates whether exported avro files include logical type annotations.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html` |   |

### hashCode()

    public int hashCode()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

**Overrides** [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--)

### printHeader()

    public Boolean printHeader()

Returns whether an header row is printed with the result.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html` |   |

### toBuilder()

    public ExtractJobConfiguration.Builder toBuilder()

Returns a builder for the object.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.ExtractJobConfiguration.Builder` |   |

**Overrides** [JobConfiguration.toBuilder()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.JobConfiguration#com_google_cloud_bigquery_JobConfiguration_toBuilder__)