public class MergeTask extends Task
Modifier and Type | Class and Description |
---|---|
static class |
MergeTask.CompactType |
Task.Properties, Task.Property
Constructor and Description |
---|
MergeTask(String name)
使用给定任务名构造一个
MergeTask 实例。 |
MergeTask(String name,
String table)
使用给定任务名和查询语句构造一个
MergeTask 实例。 |
Modifier and Type | Method and Description |
---|---|
String |
getTable()
Deprecated.
|
List<String> |
getTables()
Get tables (or partitions) to merge.
|
static boolean |
isCompactCommand(String sql) |
static Instance |
parseMergeTask(Odps odps,
String sql,
SQLTaskOption option) |
static Instance |
run(Odps odps,
String tableId,
Map<String,String> hints) |
void |
setTable(String table)
Deprecated.
|
void |
setTables(List<String> tables)
Set tables (or partitions) to merge.
|
getCommandText, getComment, getName, getProperties, setComment, setName, setProperties, setProperty
@Deprecated public String getTable()
@Deprecated public void setTable(String table)
table
- Table (or partition) to merge. For non-partitioned table, the param should be
the table name. For partitioned tables, the param should be in the following
format: [tbl_name] partition([pt_col]=[pt_val], ...). [tbl_name], [pt_col] and
[pt_val] should be replaced with real table name, partition column name and
partition column value respectfully.public List<String> getTables()
public void setTables(List<String> tables)
tables
- List of tables (or partitions). For non-partitioned table, list entry should be
the table name. For partitioned tables, list entry should be in the following
format: [tbl_name] partition([pt_col]=[pt_val], ...). [tbl_name], [pt_col] and
[pt_val] should be replaced with real table name, partition column name and
partition column value respectfully.public static boolean isCompactCommand(String sql)
public static Instance parseMergeTask(Odps odps, String sql, SQLTaskOption option) throws OdpsException
OdpsException
public static Instance run(Odps odps, String tableId, Map<String,String> hints) throws OdpsException
OdpsException
Copyright © 2025 Alibaba Cloud Computing. All rights reserved.