org.apache.hadoop.hbase.util
Class IncrementingEnvironmentEdge

java.lang.Object
  extended by org.apache.hadoop.hbase.util.IncrementingEnvironmentEdge
All Implemented Interfaces:
EnvironmentEdge

public class IncrementingEnvironmentEdge
extends Object
implements EnvironmentEdge

Uses an incrementing algorithm instead of the default.


Constructor Summary
IncrementingEnvironmentEdge()
           
 
Method Summary
 long currentTimeMillis()
          Returns the currentTimeMillis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncrementingEnvironmentEdge

public IncrementingEnvironmentEdge()
Method Detail

currentTimeMillis

public long currentTimeMillis()
Returns the currentTimeMillis.

This method increments a known value for the current time each time this method is called. The first value is 1.

Specified by:
currentTimeMillis in interface EnvironmentEdge
Returns:
currentTimeMillis.


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.