public class CreateStreamingJobRequest
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.
|
List<String> |
destColumns
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.
|
List<String> |
matchColumns
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
|
List<String> |
srcColumns
The source fields.
|
Boolean |
tryRun
Specifies whether to test the real-time job.
|
List<String> |
updateColumns
The columns to be updated if a row of data meets the update condition.
|
String |
writeMode
The write mode.
|
| 构造器和说明 |
|---|
CreateStreamingJobRequest() |
@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="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 List<String> matchColumns
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="TryRun") public Boolean tryRun
Specifies whether to test the real-time job. Valid values:
Default value: false.
example:true
@NameInMap(value="UpdateColumns") public List<String> updateColumns
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 CreateStreamingJobRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateStreamingJobRequest setAccount(String account)
public String getAccount()
public CreateStreamingJobRequest setConsistency(String consistency)
public String getConsistency()
public CreateStreamingJobRequest setDBInstanceId(String DBInstanceId)
public String getDBInstanceId()
public CreateStreamingJobRequest setDataSourceId(String dataSourceId)
public String getDataSourceId()
public CreateStreamingJobRequest setDestColumns(List<String> destColumns)
public CreateStreamingJobRequest setDestDatabase(String destDatabase)
public String getDestDatabase()
public CreateStreamingJobRequest setDestSchema(String destSchema)
public String getDestSchema()
public CreateStreamingJobRequest setDestTable(String destTable)
public String getDestTable()
public CreateStreamingJobRequest setErrorLimitCount(Long errorLimitCount)
public Long getErrorLimitCount()
public CreateStreamingJobRequest setFallbackOffset(String fallbackOffset)
public String getFallbackOffset()
public CreateStreamingJobRequest setGroupName(String groupName)
public String getGroupName()
public CreateStreamingJobRequest setJobConfig(String jobConfig)
public String getJobConfig()
public CreateStreamingJobRequest setJobDescription(String jobDescription)
public String getJobDescription()
public CreateStreamingJobRequest setJobName(String jobName)
public String getJobName()
public CreateStreamingJobRequest setMatchColumns(List<String> matchColumns)
public CreateStreamingJobRequest setMode(String mode)
public String getMode()
public CreateStreamingJobRequest setPassword(String password)
public String getPassword()
public CreateStreamingJobRequest setRegionId(String regionId)
public String getRegionId()
public CreateStreamingJobRequest setSrcColumns(List<String> srcColumns)
public CreateStreamingJobRequest setTryRun(Boolean tryRun)
public Boolean getTryRun()
public CreateStreamingJobRequest setUpdateColumns(List<String> updateColumns)
public CreateStreamingJobRequest setWriteMode(String writeMode)
public String getWriteMode()
Copyright © 2024. All rights reserved.