|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.server.common.GenerationStamp
@InterfaceAudience.Private public class GenerationStamp
A GenerationStamp is a Hadoop FS primitive, identified by a long.
Field Summary | |
---|---|
static long |
FIRST_VALID_STAMP
The first valid generation stamp. |
static long |
GRANDFATHER_GENERATION_STAMP
Generation stamp of blocks that pre-date the introduction of a generation stamp. |
Constructor Summary | |
---|---|
GenerationStamp()
Create a new instance, initialized to FIRST_VALID_STAMP. |
Method Summary | |
---|---|
int |
compareTo(GenerationStamp that)
|
boolean |
equals(Object o)
|
long |
getStamp()
Returns the current generation stamp |
int |
hashCode()
|
long |
nextStamp()
First increments the counter and then returns the stamp |
void |
setStamp(long stamp)
Sets the current generation stamp |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long FIRST_VALID_STAMP
public static final long GRANDFATHER_GENERATION_STAMP
Constructor Detail |
---|
public GenerationStamp()
Method Detail |
---|
public long getStamp()
public void setStamp(long stamp)
public long nextStamp()
public int compareTo(GenerationStamp that)
compareTo
in interface Comparable<GenerationStamp>
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |