public class CreateStreamingJobShrinkRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
account
The name of the database account.
|
String |
consistency
The delivery guarantee setting.
|
String |
dataSourceId
The data source ID.
|
String |
DBInstanceId
The instance ID.
|
String |
destColumnsShrink
The destination fields.
|
String |
destDatabase
The name of the destination database.
|
String |
destSchema
example:
dest-schema
|
String |
destTable
The name of the destination table.
|
Long |
errorLimitCount
The number of allowed error rows.
|
String |
fallbackOffset
example:
earliest / latest
|
String |
groupName
example:
group_name。
|
String |
jobConfig
The YAML configuration file of the job.
|
String |
jobDescription
The description of the job.
|
String |
jobName
The name of the job.
|
String |
matchColumnsShrink
The update condition columns that are used to join the source data and the destination table.
|
String |
mode
The configuration mode.
|
String |
password
The password of the database account.
|
String |
regionId
example:
cn-beijing
|
String |
srcColumnsShrink
The source fields.
|
Boolean |
tryRun
Specifies whether to test the real-time job.
|
String |
updateColumnsShrink
The columns to be updated if a row of data meets the update condition.
|
String |
writeMode
The write mode.
|
| 构造器和说明 |
|---|
CreateStreamingJobShrinkRequest() |
@NameInMap(value="Account") public String account
The name of the database account.
example:test-account
@NameInMap(value="Consistency") public String consistency
The delivery guarantee setting.
Valid values:
ATLEAST / EXACTLY
@NameInMap(value="DBInstanceId") public String DBInstanceId
The instance ID.
This parameter is required.
example:gp-bp10g78o9807yv9h3
@NameInMap(value="DataSourceId") public String dataSourceId
The data source ID.
This parameter is required.
example:1
@NameInMap(value="DestColumns") public String destColumnsShrink
The destination fields.
@NameInMap(value="DestDatabase") public String destDatabase
The name of the destination database.
example:dest-db
@NameInMap(value="DestSchema") public String destSchema
dest-schema
@NameInMap(value="DestTable") public String destTable
The name of the destination table.
example:dest-table
@NameInMap(value="ErrorLimitCount") public Long errorLimitCount
The number of allowed error rows. Write failures occur when Kafka data does not match the destination table in AnalyticDB for PostgreSQL. If the specified value is exceeded, the job fails.
example:5
@NameInMap(value="FallbackOffset") public String fallbackOffset
earliest / latest
@NameInMap(value="GroupName") public String groupName
group_name。
@NameInMap(value="JobConfig") public String jobConfig
The YAML configuration file of the job. This parameter must be specified when Mode is set to professional.
example:DATABASE: adbpgss_test USER: adbpgss_test PASSWORD: adbpgssTest HOST: gp-xxx-master.gpdb.rds-aliyun-pre.rds.aliyuncs.com PORT: 5432 KAFKA: INPUT: SOURCE: BROKERS: broker1:9092,broker2:9092,broker3:9092 TOPIC: testtopic FALLBACK_OFFSET: earliest KEY: COLUMNS: - NAME: customer_id TYPE: int FORMAT: delimited DELIMITED_OPTION: DELIMITER: \"|\" VALUE: COLUMNS: - TYPE: integer NAME: l_orderkey - TYPE: integer NAME: l_partkey - TYPE: integer NAME: l_suppkey - TYPE: integer NAME: l_linenumber - TYPE: decimal NAME: l_quantity - TYPE: decimal NAME: l_extendedprice - TYPE: decimal NAME: l_discount - TYPE: decimal NAME: l_tax - TYPE: char NAME: l_returnflag - TYPE: char NAME: l_linestatus - TYPE: date NAME: l_shipdate - TYPE: date NAME: l_commitdate - TYPE: date NAME: l_receiptdate - TYPE: text NAME: l_shipinstruct - TYPE: text NAME: l_shipmode - TYPE: text NAME: l_comment FORMAT: delimited DELIMITED_OPTION: DELIMITER: \"|\" ERROR_LIMIT: 10 OUTPUT: SCHEMA: adbpgss_test TABLE: write_with_insert_plaintext MODE: MERGE MATCH_COLUMNS: - l_orderkey - l_partkey - l_suppkey UPDATE_COLUMNS: - l_linenumber - l_quantity - l_extendedprice - l_discount - l_tax - l_returnflag - l_linestatus - l_shipdate - l_commitdate - l_receiptdate - l_shipinstruct - l_shipmode - l_comment MAPPING: - EXPRESSION: l_orderkey NAME: l_orderkey - EXPRESSION: l_partkey NAME: l_partkey - EXPRESSION: l_suppkey NAME: l_suppkey - EXPRESSION: l_linenumber NAME: l_linenumber - EXPRESSION: l_quantity NAME: l_quantity - EXPRESSION: l_extendedprice NAME: l_extendedprice - EXPRESSION: l_discount NAME: l_discount - EXPRESSION: l_tax NAME: l_tax - EXPRESSION: l_returnflag NAME: l_returnflag - EXPRESSION: l_linestatus NAME: l_linestatus - EXPRESSION: l_shipdate NAME: l_shipdate - EXPRESSION: l_commitdate NAME: l_commitdate - EXPRESSION: l_receiptdate NAME: l_receiptdate - EXPRESSION: l_shipinstruct NAME: l_shipinstruct - EXPRESSION: l_shipmode NAME: l_shipmode - EXPRESSION: l_comment NAME: l_comment COMMIT: MAX_ROW: 1000 MINIMAL_INTERVAL: 1000 CONSISTENCY: ATLEAST POLL: BATCHSIZE: 1000 TIMEOUT: 1000 PROPERTIES: group.id: testgroup
@NameInMap(value="JobDescription") public String jobDescription
The description of the job.
example:test-job
@NameInMap(value="JobName") public String jobName
The name of the job.
This parameter is required.
example:test-job
@NameInMap(value="MatchColumns") public String matchColumnsShrink
The update condition columns that are used to join the source data and the destination table. Typically, the columns are all the primary key columns of the destination table. If the values of all columns specified by this parameter in different rows are the same, the rows are considered duplicates.
@NameInMap(value="Mode") public String mode
The configuration mode. Valid values:
basic / professional
@NameInMap(value="Password") public String password
The password of the database account.
example:pwd123
@NameInMap(value="RegionId") public String regionId
cn-beijing
@NameInMap(value="SrcColumns") public String srcColumnsShrink
The source fields.
@NameInMap(value="TryRun") public Boolean tryRun
Specifies whether to test the real-time job. Valid values:
Default value: false.
example:true
@NameInMap(value="UpdateColumns") public String updateColumnsShrink
The columns to be updated if a row of data meets the update condition. Typically, the columns are all non-primary key columns of the destination table. When the columns specified by the MatchColumns parameter are used as conditions to join the source data and the destination table, data in columns of the UpdateColumns type is updated if data is matched.
@NameInMap(value="WriteMode") public String writeMode
The write mode.
Valid values:
insert/update/merge
public static CreateStreamingJobShrinkRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateStreamingJobShrinkRequest setAccount(String account)
public String getAccount()
public CreateStreamingJobShrinkRequest setConsistency(String consistency)
public String getConsistency()
public CreateStreamingJobShrinkRequest setDBInstanceId(String DBInstanceId)
public String getDBInstanceId()
public CreateStreamingJobShrinkRequest setDataSourceId(String dataSourceId)
public String getDataSourceId()
public CreateStreamingJobShrinkRequest setDestColumnsShrink(String destColumnsShrink)
public String getDestColumnsShrink()
public CreateStreamingJobShrinkRequest setDestDatabase(String destDatabase)
public String getDestDatabase()
public CreateStreamingJobShrinkRequest setDestSchema(String destSchema)
public String getDestSchema()
public CreateStreamingJobShrinkRequest setDestTable(String destTable)
public String getDestTable()
public CreateStreamingJobShrinkRequest setErrorLimitCount(Long errorLimitCount)
public Long getErrorLimitCount()
public CreateStreamingJobShrinkRequest setFallbackOffset(String fallbackOffset)
public String getFallbackOffset()
public CreateStreamingJobShrinkRequest setGroupName(String groupName)
public String getGroupName()
public CreateStreamingJobShrinkRequest setJobConfig(String jobConfig)
public String getJobConfig()
public CreateStreamingJobShrinkRequest setJobDescription(String jobDescription)
public String getJobDescription()
public CreateStreamingJobShrinkRequest setJobName(String jobName)
public String getJobName()
public CreateStreamingJobShrinkRequest setMatchColumnsShrink(String matchColumnsShrink)
public String getMatchColumnsShrink()
public CreateStreamingJobShrinkRequest setMode(String mode)
public String getMode()
public CreateStreamingJobShrinkRequest setPassword(String password)
public String getPassword()
public CreateStreamingJobShrinkRequest setRegionId(String regionId)
public String getRegionId()
public CreateStreamingJobShrinkRequest setSrcColumnsShrink(String srcColumnsShrink)
public String getSrcColumnsShrink()
public CreateStreamingJobShrinkRequest setTryRun(Boolean tryRun)
public Boolean getTryRun()
public CreateStreamingJobShrinkRequest setUpdateColumnsShrink(String updateColumnsShrink)
public String getUpdateColumnsShrink()
public CreateStreamingJobShrinkRequest setWriteMode(String writeMode)
public String getWriteMode()
Copyright © 2024. All rights reserved.