Gcloud::Bigquery::CopyJob

CopyJob

A Job subclass representing a copy operation that may be performed on a Table. A CopyJob instance is created when you call Gcloud::Bigquery::Table#copy.

See Copying an Existing Table and the Jobs API reference for details.

Methods

Public Instance Methods

create_if_needed?()

Checks if the create disposition for the job is CREATE_IF_NEEDED, which provides the following behavior: If the table does not exist, the copy operation creates the table. This is the default.

create_never?()

Checks if the create disposition for the job is CREATE_NEVER, which provides the following behavior: The table must already exist; if it does not, an error is returned in the job result.

destination()

The table to which data is copied. Returns a Table instance.

source()

The table from which data is copied. This is the table on which Gcloud::Bigquery::Table#copy was called. Returns a Table instance.

write_append?()

Checks if the write disposition for the job is WRITE_APPEND, which provides the following behavior: If the table already exists, the copy operation appends the data to the table.

write_empty?()

Checks if the write disposition for the job is WRITE_EMPTY, which provides the following behavior: If the table already exists and contains data, the job will have an error. This is the default.

write_truncate?()

Checks if the write disposition for the job is WRITE_TRUNCATE, which provides the following behavior: If the table already exists, the copy operation overwrites the table data.