Class ExtractJobConfiguration (2.33.1)

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 type.

Inheritance

Object > JobConfiguration > ExtractJobConfiguration

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
NameDescription
sourceModelModelId
destinationUriString
Returns
TypeDescription
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
NameDescription
sourceModelModelId
destinationUrisList<String>
Returns
TypeDescription
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
NameDescription
sourceTableTableId
destinationUriString
Returns
TypeDescription
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
NameDescription
sourceTableTableId
destinationUrisList<String>
Returns
TypeDescription
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
NameDescription
sourceModelModelId
destinationUriString
Returns
TypeDescription
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
NameDescription
sourceTableModelId
destinationUriString
formatString
Returns
TypeDescription
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
NameDescription
sourceModelModelId
destinationUrisList<String>
Returns
TypeDescription
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
NameDescription
sourceModelModelId
destinationUrisList<String>
formatString
Returns
TypeDescription
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
NameDescription
sourceTableTableId
destinationUriString
Returns
TypeDescription
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
NameDescription
sourceTableTableId
destinationUriString
formatString
Returns
TypeDescription
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
NameDescription
sourceTableTableId
destinationUrisList<String>
Returns
TypeDescription
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
NameDescription
sourceTableTableId
destinationUrisList<String>
formatString
Returns
TypeDescription
ExtractJobConfiguration

Methods

equals(Object obj)

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

getCompression()

public String getCompression()

Returns the compression value of exported files.

Returns
TypeDescription
String

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

Returns
TypeDescription
List<String>

getFieldDelimiter()

public String getFieldDelimiter()

Returns the delimiter used between fields in the exported data.

Returns
TypeDescription
String

getFormat()

public String getFormat()

Returns the exported files format.

Returns
TypeDescription
String

getJobTimeoutMs()

public Long getJobTimeoutMs()

Returns the timeout associated with this job

Returns
TypeDescription
Long

getLabels()

public Map<String,String> getLabels()

Returns the labels associated with this job

Returns
TypeDescription
Map<String,String>

getSourceModel()

public ModelId getSourceModel()

Returns the model to export.

Returns
TypeDescription
ModelId

getSourceTable()

public TableId getSourceTable()

Returns the table to export.

Returns
TypeDescription
TableId

getUseAvroLogicalTypes()

public Boolean getUseAvroLogicalTypes()

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

Returns
TypeDescription
Boolean

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

printHeader()

public Boolean printHeader()

Returns whether an header row is printed with the result.

Returns
TypeDescription
Boolean

toBuilder()

public ExtractJobConfiguration.Builder toBuilder()

Returns a builder for the object.

Returns
TypeDescription
ExtractJobConfiguration.Builder
Overrides