Package org.apache.hadoop.hbase.util
Class IncrementingEnvironmentEdge
java.lang.Object
org.apache.hadoop.hbase.util.IncrementingEnvironmentEdge
- All Implemented Interfaces:
- EnvironmentEdge
Uses an incrementing algorithm instead of the default.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionConstruct an incremental edge starting from currentTimeMillisIncrementingEnvironmentEdge(long initialAmount) Construct an incremental edge with an initial amount
- 
Method SummaryModifier and TypeMethodDescriptionlongReturns the currentTime.longincrementTime(long amount) Increment the time by the given amount
- 
Field Details- 
timeIncrement
 
- 
- 
Constructor Details- 
IncrementingEnvironmentEdgepublic IncrementingEnvironmentEdge()Construct an incremental edge starting from currentTimeMillis
- 
IncrementingEnvironmentEdgeConstruct an incremental edge with an initial amount- Parameters:
- initialAmount- the initial value to start with
 
 
- 
- 
Method Details- 
currentTimeReturns the currentTime.This method increments a known value for the current time each time this method is called. The first value is 1. - Specified by:
- currentTimein interface- EnvironmentEdge
- Returns:
- Current time.
 
- 
incrementTimeIncrement the time by the given amount
 
-