Package com.google.cloud.bigquery
Class ExtractJobConfiguration
- java.lang.Object
-
- com.google.cloud.bigquery.JobConfiguration
-
- com.google.cloud.bigquery.ExtractJobConfiguration
-
- All Implemented Interfaces:
Serializable
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 haveJobConfiguration.Type.EXTRACT
type.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExtractJobConfiguration.Builder
-
Nested classes/interfaces inherited from class com.google.cloud.bigquery.JobConfiguration
JobConfiguration.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getCompression()
Returns the compression value of exported files.List<String>
getDestinationUris()
Returns the list of fully-qualified Google Cloud Storage URIs where the extracted table should be written.String
getFieldDelimiter()
Returns the delimiter used between fields in the exported data.String
getFormat()
Returns the exported files format.Long
getJobTimeoutMs()
Returns the timeout associated with this jobMap<String,String>
getLabels()
Returns the labels associated with this jobModelId
getSourceModel()
Returns the model to export.TableId
getSourceTable()
Returns the table to export.Boolean
getUseAvroLogicalTypes()
Returns True/False.int
hashCode()
static ExtractJobConfiguration.Builder
newBuilder(ModelId sourceModel, String destinationUri)
Creates a builder for a BigQuery Extract Job configuration given source model and destination URI.static ExtractJobConfiguration.Builder
newBuilder(ModelId sourceModel, List<String> destinationUris)
Creates a builder for a BigQuery Extract Job configuration given source model and destination URIs.static ExtractJobConfiguration.Builder
newBuilder(TableId sourceTable, String destinationUri)
Creates a builder for a BigQuery Extract Job configuration given source table and destination URI.static ExtractJobConfiguration.Builder
newBuilder(TableId sourceTable, List<String> destinationUris)
Creates a builder for a BigQuery Extract Job configuration given source table and destination URIs.static ExtractJobConfiguration
of(ModelId sourceModel, String destinationUri)
Returns a BigQuery Extract Job configuration for the given source model and destination URI.static ExtractJobConfiguration
of(ModelId sourceTable, String destinationUri, String format)
Returns a BigQuery Extract Job configuration for the given source model, format and destination URI.static ExtractJobConfiguration
of(ModelId sourceModel, List<String> destinationUris)
Returns a BigQuery Extract Job configuration for the given source model and destination URIs.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.static ExtractJobConfiguration
of(TableId sourceTable, String destinationUri)
Returns a BigQuery Extract Job configuration for the given source table and destination URI.static ExtractJobConfiguration
of(TableId sourceTable, String destinationUri, String format)
Returns a BigQuery Extract Job configuration for the given source table, format and destination URI.static ExtractJobConfiguration
of(TableId sourceTable, List<String> destinationUris)
Returns a BigQuery Extract Job configuration for the given source table and destination URIs.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.Boolean
printHeader()
Returns whether an header row is printed with the result.ExtractJobConfiguration.Builder
toBuilder()
Returns a builder for the object.-
Methods inherited from class com.google.cloud.bigquery.JobConfiguration
getType, toString
-
-
-
-
Method Detail
-
getSourceTable
public TableId getSourceTable()
Returns the table to export.
-
getSourceModel
public ModelId getSourceModel()
Returns the model to export.
-
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
-
printHeader
public Boolean printHeader()
Returns whether an header row is printed with the result.
-
getFieldDelimiter
public String getFieldDelimiter()
Returns the delimiter used between fields in the exported data.
-
getFormat
public String getFormat()
Returns the exported files format.
-
getCompression
public String getCompression()
Returns the compression value of exported files.
-
getUseAvroLogicalTypes
public Boolean getUseAvroLogicalTypes()
Returns True/False. Indicates whether exported avro files include logical type annotations.
-
getJobTimeoutMs
public Long getJobTimeoutMs()
Returns the timeout associated with this job
-
toBuilder
public ExtractJobConfiguration.Builder toBuilder()
Description copied from class:JobConfiguration
Returns a builder for the object.- Specified by:
toBuilder
in classJobConfiguration
-
newBuilder
public static ExtractJobConfiguration.Builder newBuilder(TableId sourceTable, String destinationUri)
Creates a builder for a BigQuery Extract Job configuration given source table and destination URI.
-
newBuilder
public static ExtractJobConfiguration.Builder newBuilder(ModelId sourceModel, String destinationUri)
Creates a builder for a BigQuery Extract Job configuration given source model and destination URI.
-
newBuilder
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.
-
newBuilder
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.
-
of
public static ExtractJobConfiguration of(TableId sourceTable, String destinationUri)
Returns a BigQuery Extract Job configuration for the given source table and destination URI.
-
of
public static ExtractJobConfiguration of(ModelId sourceModel, String destinationUri)
Returns a BigQuery Extract Job configuration for the given source model and destination URI.
-
of
public static ExtractJobConfiguration of(TableId sourceTable, List<String> destinationUris)
Returns a BigQuery Extract Job configuration for the given source table and destination URIs.
-
of
public static ExtractJobConfiguration of(ModelId sourceModel, List<String> destinationUris)
Returns a BigQuery Extract Job configuration for the given source model and destination URIs.
-
of
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.
-
of
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.
-
of
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.
-
of
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.
-
-