Class IDSequence
- java.lang.Object
-
- org.apache.sysds.runtime.controlprogram.parfor.util.IDSequence
-
public class IDSequence extends Object
ID sequence for generating unique long identifiers with start 0 and increment 1.
-
-
Constructor Summary
Constructors Constructor Description IDSequence()
IDSequence(boolean cyclic)
IDSequence(boolean cyclic, long cycleLen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCurrentID()
long
getNextID()
Creates the next ID, if overflow a RuntimeException is thrown.void
reset()
void
reset(long value)
-