forked from alibaba/DataX
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check the label state when
label already exists
- Loading branch information
Showing
5 changed files
with
118 additions
and
13 deletions.
There are no files selected for viewing
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
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
33 changes: 33 additions & 0 deletions
33
...ector/datax/plugin/writer/starrockswriter/manager/StarRocksStreamLoadFailedException.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.starrocks.connector.datax.plugin.writer.starrockswriter.manager; | ||
|
||
import java.io.IOException; | ||
import java.util.Map; | ||
|
||
|
||
public class StarRocksStreamLoadFailedException extends IOException { | ||
|
||
static final long serialVersionUID = 1L; | ||
|
||
private final Map<String, Object> response; | ||
private boolean reCreateLabel; | ||
|
||
public StarRocksStreamLoadFailedException(String message, Map<String, Object> response) { | ||
super(message); | ||
this.response = response; | ||
} | ||
|
||
public StarRocksStreamLoadFailedException(String message, Map<String, Object> response, boolean reCreateLabel) { | ||
super(message); | ||
this.response = response; | ||
this.reCreateLabel = reCreateLabel; | ||
} | ||
|
||
public Map<String, Object> getFailedResponse() { | ||
return response; | ||
} | ||
|
||
public boolean needReCreateLabel() { | ||
return reCreateLabel; | ||
} | ||
|
||
} |
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
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