@DefaultSchema(value=AutoValueSchema.class) public abstract class BigQueryWriteConfiguration extends java.lang.Object
BigQueryStorageWriteApiSchemaTransformProvider
and BigQueryFileLoadsSchemaTransformProvider
.Modifier and Type | Class and Description |
---|---|
static class |
BigQueryWriteConfiguration.Builder
Builder for
BigQueryWriteConfiguration . |
static class |
BigQueryWriteConfiguration.ErrorHandling |
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
DYNAMIC_DESTINATIONS |
Constructor and Description |
---|
BigQueryWriteConfiguration() |
Modifier and Type | Method and Description |
---|---|
static BigQueryWriteConfiguration.Builder |
builder()
Instantiates a
BigQueryWriteConfiguration.Builder instance. |
abstract @Nullable java.lang.Boolean |
getAutoSharding() |
abstract @Nullable java.lang.String |
getCreateDisposition() |
abstract @Nullable java.util.List<java.lang.String> |
getDrop() |
abstract @Nullable BigQueryWriteConfiguration.ErrorHandling |
getErrorHandling() |
abstract @Nullable java.util.List<java.lang.String> |
getKeep() |
abstract @Nullable java.lang.String |
getKmsKey() |
abstract @Nullable java.lang.Integer |
getNumStreams() |
abstract @Nullable java.lang.String |
getOnly() |
abstract @Nullable java.util.List<java.lang.String> |
getPrimaryKey() |
abstract java.lang.String |
getTable() |
abstract @Nullable java.lang.Long |
getTriggeringFrequencySeconds() |
abstract @Nullable java.lang.Boolean |
getUseAtLeastOnceSemantics() |
abstract @Nullable java.lang.Boolean |
getUseCdcWrites() |
abstract @Nullable java.lang.String |
getWriteDisposition() |
void |
validate() |
protected static final java.lang.String DYNAMIC_DESTINATIONS
public void validate()
public static BigQueryWriteConfiguration.Builder builder()
BigQueryWriteConfiguration.Builder
instance.@SchemaFieldDescription(value="The bigquery table to write to. Format: [${PROJECT}:]${DATASET}.${TABLE}") public abstract java.lang.String getTable()
@SchemaFieldDescription(value="Optional field that specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED (the job may create the table), CREATE_NEVER (the job must fail if the table does not exist already).") public abstract @Nullable java.lang.String getCreateDisposition()
@SchemaFieldDescription(value="Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE (overwrites the table data), WRITE_APPEND (append the data to the table), WRITE_EMPTY (job must fail if the table is not empty).") public abstract @Nullable java.lang.String getWriteDisposition()
@SchemaFieldDescription(value="Determines how often to \'commit\' progress into BigQuery. Default is every 5 seconds.") public abstract @Nullable java.lang.Long getTriggeringFrequencySeconds()
@SchemaFieldDescription(value="This option enables lower latency for insertions to BigQuery but may ocassionally duplicate data elements.") public abstract @Nullable java.lang.Boolean getUseAtLeastOnceSemantics()
@SchemaFieldDescription(value="This option enables using a dynamically determined number of Storage Write API streams to write to BigQuery. Only applicable to unbounded data.") public abstract @Nullable java.lang.Boolean getAutoSharding()
@SchemaFieldDescription(value="Specifies the number of write streams that the Storage API sink will use. This parameter is only applicable when writing unbounded data.") public abstract @Nullable java.lang.Integer getNumStreams()
@SchemaFieldDescription(value="Use this Cloud KMS key to encrypt your data") public abstract @Nullable java.lang.String getKmsKey()
@SchemaFieldDescription(value="This option specifies whether and where to output unwritable rows.") public abstract @Nullable BigQueryWriteConfiguration.ErrorHandling getErrorHandling()
@SchemaFieldDescription(value="This option enables the use of BigQuery CDC functionality. The expected PCollection should contain Beam Rows with a schema wrapping the record to be inserted and adding the CDC info similar to: {row_mutation_info: {mutation_type:\"...\", change_sequence_number:\"...\"}, record: {...}}") public abstract @Nullable java.lang.Boolean getUseCdcWrites()
@SchemaFieldDescription(value="If CREATE_IF_NEEDED disposition is set, BigQuery table(s) will be created with this columns as primary key. Required when CDC writes are enabled with CREATE_IF_NEEDED.") public abstract @Nullable java.util.List<java.lang.String> getPrimaryKey()
@SchemaFieldDescription(value="A list of field names to keep in the input record. All other fields are dropped before writing. Is mutually exclusive with \'drop\' and \'only\'.") public abstract @Nullable java.util.List<java.lang.String> getKeep()
@SchemaFieldDescription(value="A list of field names to drop from the input record before writing. Is mutually exclusive with \'keep\' and \'only\'.") public abstract @Nullable java.util.List<java.lang.String> getDrop()
@SchemaFieldDescription(value="The name of a single record field that should be written. Is mutually exclusive with \'keep\' and \'drop\'.") public abstract @Nullable java.lang.String getOnly()