-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b9896f
commit ba027b8
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...aliyun/fastmodel/transform/api/extension/client/property/table/ListPartitionProperty.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.aliyun.fastmodel.transform.api.extension.client.property.table; | ||
|
||
import com.alibaba.fastjson.JSON; | ||
|
||
import com.aliyun.fastmodel.transform.api.client.dto.property.BaseClientProperty; | ||
import com.aliyun.fastmodel.transform.api.extension.client.property.table.partition.ListClientPartition; | ||
import org.apache.commons.lang3.StringUtils; | ||
|
||
import static com.aliyun.fastmodel.transform.api.extension.client.property.ExtensionPropertyKey.TABLE_LIST_PARTITION; | ||
|
||
/** | ||
* @author 子梁 | ||
* @date 2023/12/25 | ||
*/ | ||
public class ListPartitionProperty extends BaseClientProperty<ListClientPartition> { | ||
|
||
public ListPartitionProperty() { | ||
this.setKey(TABLE_LIST_PARTITION.getValue()); | ||
} | ||
|
||
@Override | ||
public String valueString() { | ||
return JSON.toJSONString(value); | ||
} | ||
|
||
@Override | ||
public void setValueString(String value) { | ||
if (StringUtils.isBlank(value)) { | ||
return; | ||
} | ||
this.setValue(JSON.parseObject(value, ListClientPartition.class)); | ||
} | ||
} |