[HUDI-1767] Add setter to HoodieKey and HoodieRecordLocation to have better SE/DE performance for Flink (#2779)
This commit is contained in:
@@ -29,19 +29,29 @@ import java.util.Objects;
|
||||
*/
|
||||
public class HoodieKey implements Serializable {
|
||||
|
||||
private final String recordKey;
|
||||
private String recordKey;
|
||||
private String partitionPath;
|
||||
|
||||
private final String partitionPath;
|
||||
public HoodieKey() {
|
||||
}
|
||||
|
||||
public HoodieKey(String recordKey, String partitionPath) {
|
||||
this.recordKey = recordKey;
|
||||
this.partitionPath = partitionPath;
|
||||
}
|
||||
|
||||
public void setRecordKey(String recordKey) {
|
||||
this.recordKey = recordKey;
|
||||
}
|
||||
|
||||
public String getRecordKey() {
|
||||
return recordKey;
|
||||
}
|
||||
|
||||
public void setPartitionPath(String partitionPath) {
|
||||
this.partitionPath = partitionPath;
|
||||
}
|
||||
|
||||
public String getPartitionPath() {
|
||||
return partitionPath;
|
||||
}
|
||||
|
||||
@@ -26,8 +26,11 @@ import java.util.Objects;
|
||||
*/
|
||||
public class HoodieRecordLocation implements Serializable {
|
||||
|
||||
private final String instantTime;
|
||||
private final String fileId;
|
||||
private String instantTime;
|
||||
private String fileId;
|
||||
|
||||
public HoodieRecordLocation() {
|
||||
}
|
||||
|
||||
public HoodieRecordLocation(String instantTime, String fileId) {
|
||||
this.instantTime = instantTime;
|
||||
@@ -64,7 +67,15 @@ public class HoodieRecordLocation implements Serializable {
|
||||
return instantTime;
|
||||
}
|
||||
|
||||
public void setInstantTime(String instantTime) {
|
||||
this.instantTime = instantTime;
|
||||
}
|
||||
|
||||
public String getFileId() {
|
||||
return fileId;
|
||||
}
|
||||
|
||||
public void setFileId(String fileId) {
|
||||
this.fileId = fileId;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user