forked from apache/doris-flink-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
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
wudi
committed
Nov 21, 2023
1 parent
0a2d85f
commit 6f7ac76
Showing
3 changed files
with
30 additions
and
97 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
15 changes: 15 additions & 0 deletions
15
flink-doris-connector/src/main/java/org/apache/doris/flink/sink/util/DeleteOperation.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,15 @@ | ||
package org.apache.doris.flink.sink.util; | ||
|
||
import java.util.Map; | ||
|
||
import static org.apache.doris.flink.sink.writer.LoadConstants.DORIS_DELETE_SIGN; | ||
|
||
public class DeleteOperation { | ||
public static void addDeleteSign(Map<String, Object> valueMap, boolean delete) { | ||
if (delete) { | ||
valueMap.put(DORIS_DELETE_SIGN, "1"); | ||
} else { | ||
valueMap.put(DORIS_DELETE_SIGN, "0"); | ||
} | ||
} | ||
} |
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