You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: inlong-sort/sort-formats/format-common/src/main/java/org/apache/inlong/sort/formats/base/TableFormatUtils.java
Copy file name to clipboardExpand all lines: inlong-sort/sort-formats/format-common/src/main/java/org/apache/inlong/sort/formats/inlongmsg/FailureHandler.java
Copy file name to clipboardExpand all lines: inlong-sort/sort-formats/format-common/src/main/java/org/apache/inlong/sort/formats/inlongmsg/InLongMsgBody.java
+21-21Lines changed: 21 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,9 @@
17
17
18
18
packageorg.apache.inlong.sort.formats.inlongmsg;
19
19
20
+
importlombok.Data;
21
+
importorg.apache.commons.lang3.StringUtils;
22
+
20
23
importjava.io.Serializable;
21
24
importjava.util.Arrays;
22
25
importjava.util.List;
@@ -25,14 +28,20 @@
25
28
/**
26
29
* The body deserialized from {@link InLongMsgBody}.
27
30
*/
31
+
@Data
28
32
publicclassInLongMsgBodyimplementsSerializable {
29
33
30
34
privatestaticfinallongserialVersionUID = 1L;
31
35
32
36
/**
33
37
* The body of the record.
34
38
*/
35
-
privatefinalbyte[] data;
39
+
privatefinalbyte[] dataBytes;
40
+
41
+
/**
42
+
* The body of the record.
43
+
*/
44
+
privatefinalStringdata;
36
45
37
46
/**
38
47
* The interface of the record.
@@ -50,32 +59,18 @@ public class InLongMsgBody implements Serializable {
50
59
privatefinalMap<String, String> entries;
51
60
52
61
publicInLongMsgBody(
53
-
byte[] data,
62
+
byte[] dataBytes,
63
+
Stringdata,
54
64
StringstreamId,
55
65
List<String> fields,
56
66
Map<String, String> entries) {
67
+
this.dataBytes = dataBytes;
57
68
this.data = data;
58
69
this.streamId = streamId;
59
70
this.fields = fields;
60
71
this.entries = entries;
61
72
}
62
73
63
-
publicbyte[] getData() {
64
-
returndata;
65
-
}
66
-
67
-
publicStringgetStreamId() {
68
-
returnstreamId;
69
-
}
70
-
71
-
publicList<String> getFields() {
72
-
returnfields;
73
-
}
74
-
75
-
publicMap<String, String> getEntries() {
76
-
returnentries;
77
-
}
78
-
79
74
@Override
80
75
publicbooleanequals(Objecto) {
81
76
if (this == o) {
@@ -87,17 +82,22 @@ public boolean equals(Object o) {
Copy file name to clipboardExpand all lines: inlong-sort/sort-formats/format-common/src/main/java/org/apache/inlong/sort/formats/inlongmsg/InLongMsgWrap.java
+8-9Lines changed: 8 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -17,28 +17,27 @@
17
17
18
18
packageorg.apache.inlong.sort.formats.inlongmsg;
19
19
20
+
importlombok.Data;
21
+
20
22
importjava.io.Serializable;
21
23
importjava.util.List;
22
24
23
25
/**
24
26
* The body deserialized from {@link InLongMsgWrap}.
Copy file name to clipboardExpand all lines: inlong-sort/sort-formats/format-row/format-inlongmsg-binlog/src/main/java/org/apache/inlong/sort/formats/inlongmsgbinlog/InLongMsgBinlogFormatDeserializer.java
Copy file name to clipboardExpand all lines: inlong-sort/sort-formats/format-row/format-inlongmsg-binlog/src/main/java/org/apache/inlong/sort/formats/inlongmsgbinlog/InLongMsgBinlogUtils.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,7 @@ public static InLongMsgBody parseBody(byte[] bytes) {
Copy file name to clipboardExpand all lines: inlong-sort/sort-formats/format-row/format-inlongmsg-csv/src/main/java/org/apache/inlong/sort/formats/inlongmsgcsv/InLongMsgCsvUtils.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,8 @@ public static List<InLongMsgBody> parseBodyList(
116
116
// Only parsed fields will be used by downstream, so it's safe to leave
Copy file name to clipboardExpand all lines: inlong-sort/sort-formats/format-row/format-inlongmsg-kv/src/main/java/org/apache/inlong/sort/formats/inlongmsgkv/InLongMsgKvUtils.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,7 @@ public static List<InLongMsgBody> parseBodyList(
Copy file name to clipboardExpand all lines: inlong-sort/sort-formats/format-row/format-inlongmsg-tlogcsv/src/main/java/org/apache/inlong/sort/formats/inlongmsgtlogcsv/InLongMsgTlogCsvUtils.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ public static InLongMsgBody parseBody(
Copy file name to clipboardExpand all lines: inlong-sort/sort-formats/format-row/format-inlongmsg-tlogkv/src/main/java/org/apache/inlong/sort/formats/inlongmsgtlogkv/InLongMsgTlogKvUtils.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ public static InLongMsgBody parseBody(
0 commit comments