Class RestrictionTracker.Progress
java.lang.Object
org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker.Progress
- Enclosing class:
 RestrictionTracker<RestrictionT,PositionT> 
A representation for the amount of known completed and remaining work. See 
RestrictionTracker.HasProgress.getProgress() for details.- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RestrictionTracker.ProgressConstant Progress instance to be used when no work has been completed yet. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic RestrictionTracker.Progressfrom(double workCompleted, double workRemaining) A representation for the amount of known completed and remaining work.abstract doubleThe known amount of completed work.abstract doubleThe known amount of work remaining. 
- 
Field Details
- 
NONE
Constant Progress instance to be used when no work has been completed yet. 
 - 
 - 
Constructor Details
- 
Progress
public Progress() 
 - 
 - 
Method Details
- 
from
A representation for the amount of known completed and remaining work. SeeRestrictionTracker.HasProgress.getProgress()for details.- Parameters:
 workCompleted- Must be>= 0.workRemaining- Must be>= 0.
 - 
getWorkCompleted
public abstract double getWorkCompleted()The known amount of completed work. - 
getWorkRemaining
public abstract double getWorkRemaining()The known amount of work remaining. 
 -