FMX commented on code in PR #2300:
URL: https://github.com/apache/celeborn/pull/2300#discussion_r1591743875
##########
common/src/main/java/org/apache/celeborn/common/meta/ReduceFileMeta.java:
##########
@@ -21,13 +21,29 @@
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
+import org.roaringbitmap.RoaringBitmap;
+
+import org.apache.celeborn.common.CelebornConf;
+
public class ReduceFileMeta implements FileMeta {
- private final List<Long> chunkOffsets;
private final AtomicBoolean sorted = new AtomicBoolean(false);
+ private final List<Long> chunkOffsets;
+ private RoaringBitmap mapIds;
+ private transient CelebornConf conf = new CelebornConf();
+ private long chunkSize = conf.shuffleChunkSize();
+ private long nextBoundary;
- public ReduceFileMeta() {
+ public ReduceFileMeta(long chunkSize) {
this.chunkOffsets = new ArrayList<>();
chunkOffsets.add(0L);
+ this.chunkSize = chunkSize;
+ nextBoundary = chunkSize;
+ }
+
+ public ReduceFileMeta(List<Long> chunkOffsets, long chunkSize) {
+ this.chunkOffsets = chunkOffsets;
+ nextBoundary = chunkSize;
Review Comment:
This is the constructor method, the offset is zero.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]