@InterfaceAudience.Private public class IncrementingEnvironmentEdge extends Object implements EnvironmentEdge
Constructor and Description |
---|
IncrementingEnvironmentEdge()
Construct an incremental edge starting from currentTimeMillis
|
IncrementingEnvironmentEdge(long initialAmount)
Construct an incremental edge with an initial amount
|
Modifier and Type | Method and Description |
---|---|
long |
currentTime()
Returns the currentTime.
|
long |
incrementTime(long amount)
Increment the time by the given amount
|
public IncrementingEnvironmentEdge()
public IncrementingEnvironmentEdge(long initialAmount)
initialAmount
- the initial value to start withpublic long currentTime()
This method increments a known value for the current time each time this method is called. The first value is 1.
currentTime
in interface EnvironmentEdge
public long incrementTime(long amount)
Copyright © 2007–2019 Cloudera. All rights reserved.