1
0

Adding another metric to HoodieWriteStat to determine if there were inserts converted to updates, added one test for this

This commit is contained in:
Nishith Agarwal
2018-08-07 15:51:46 -07:00
committed by vinoth chandar
parent 989afddd54
commit 88274b8261
6 changed files with 116 additions and 8 deletions

View File

@@ -61,6 +61,11 @@ public class HoodieWriteStat implements Serializable {
*/
private long numUpdateWrites;
/**
* Total number of insert records or converted to updates (for small file handling)
*/
private long numInserts;
/**
* Total size of file written
*/
@@ -160,6 +165,10 @@ public class HoodieWriteStat implements Serializable {
this.numUpdateWrites = numUpdateWrites;
}
public void setNumInserts(long numInserts) {
this.numInserts = numInserts;
}
public long getTotalWriteBytes() {
return totalWriteBytes;
}
@@ -192,6 +201,10 @@ public class HoodieWriteStat implements Serializable {
return numUpdateWrites;
}
public long getNumInserts() {
return numInserts;
}
public String getFileId() {
return fileId;
}