Package org.pentaho.di.core
Class Counter
- java.lang.Object
-
- org.pentaho.di.core.Counter
-
public class Counter extends Object
Is used to keep the state of sequences / counters throughout a single session of a Transformation, but across Steps.- Since:
- 13-05-2003
- Author:
- Matt
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCounter()longgetIncrement()longgetMaximum()longgetStart()booleanisLoop()longnext()voidsetCounter(long counter)voidsetIncrement(long increment)voidsetLoop(boolean loop)voidsetMaximum(long maximum)
-
-
-
Method Detail
-
getCounter
public long getCounter()
- Returns:
- Returns the counter.
-
getIncrement
public long getIncrement()
- Returns:
- Returns the increment.
-
getMaximum
public long getMaximum()
- Returns:
- Returns the maximum.
-
getStart
public long getStart()
- Returns:
- Returns the start.
-
isLoop
public boolean isLoop()
- Returns:
- Returns the loop.
-
setCounter
public void setCounter(long counter)
- Parameters:
counter- The counter to set.
-
setIncrement
public void setIncrement(long increment)
- Parameters:
increment- The increment to set.
-
setLoop
public void setLoop(boolean loop)
- Parameters:
loop- The loop to set.
-
setMaximum
public void setMaximum(long maximum)
- Parameters:
maximum- The maximum to set.
-
next
public long next()
-
-