Class OOCInstruction.OOCMatrixBlockTracker
java.lang.Object
org.apache.sysds.runtime.instructions.ooc.OOCInstruction.OOCMatrixBlockTracker
- Enclosing class:
- OOCInstruction
Tracks blocks and their counts to enable early emission
once all blocks for a given index are processed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanincrementCount(Long idx) booleanputAndIncrementCount(Long idx, MatrixBlock block) Adds or updates a block for the given index and updates its internal count.voidputAndInitCount(Long idx, MatrixBlock block) void
-
Constructor Details
-
OOCMatrixBlockTracker
public OOCMatrixBlockTracker(long emitThreshold)
-
-
Method Details
-
putAndIncrementCount
Adds or updates a block for the given index and updates its internal count.- Parameters:
idx- block indexblock- MatrixBlock- Returns:
- true if the block count reached the threshold (ready to emit), false otherwise
-
incrementCount
-
putAndInitCount
-
get
-
remove
-