Tabnine Logo
GenerationStamp.nextValue
Code IndexAdd Tabnine to your IDE (free)

How to use
nextValue
method
in
org.apache.hadoop.hdfs.server.common.GenerationStamp

Best Java code snippets using org.apache.hadoop.hdfs.server.common.GenerationStamp.nextValue (Showing top 6 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

@VisibleForTesting
long getNextGenerationStamp() {
 return generationStamp.nextValue();
}
origin: org.apache.hadoop/hadoop-hdfs

@VisibleForTesting
long getNextLegacyGenerationStamp() throws IOException {
 long legacyGenStamp = legacyGenerationStamp.nextValue();
 if (legacyGenStamp >= legacyGenerationStampLimit) {
  // We ran out of generation stamps for legacy blocks. In practice, it
  // is extremely unlikely as we reserved 1T legacy generation stamps. The
  // result is that we can no longer append to the legacy blocks that
  // were created before the upgrade to sequential block IDs.
  throw new OutOfLegacyGenerationStampsException();
 }
 return legacyGenStamp;
}
origin: ch.cern.hadoop/hadoop-hdfs

@VisibleForTesting
long getNextGenerationStampV2() {
 return generationStampV2.nextValue();
}
origin: ch.cern.hadoop/hadoop-hdfs

@VisibleForTesting
long getNextGenerationStampV1() throws IOException {
 long genStampV1 = generationStampV1.nextValue();
 if (genStampV1 >= generationStampV1Limit) {
  // We ran out of generation stamps for legacy blocks. In practice, it
  // is extremely unlikely as we reserved 1T v1 generation stamps. The
  // result is that we can no longer append to the legacy blocks that
  // were created before the upgrade to sequential block IDs.
  throw new OutOfV1GenerationStampsException();
 }
 return genStampV1;
}
origin: io.prestosql.hadoop/hadoop-apache

@VisibleForTesting
long getNextGenerationStampV2() {
 return generationStampV2.nextValue();
}
origin: io.prestosql.hadoop/hadoop-apache

@VisibleForTesting
long getNextGenerationStampV1() throws IOException {
 long genStampV1 = generationStampV1.nextValue();
 if (genStampV1 >= generationStampV1Limit) {
  // We ran out of generation stamps for legacy blocks. In practice, it
  // is extremely unlikely as we reserved 1T v1 generation stamps. The
  // result is that we can no longer append to the legacy blocks that
  // were created before the upgrade to sequential block IDs.
  throw new OutOfV1GenerationStampsException();
 }
 return genStampV1;
}
org.apache.hadoop.hdfs.server.commonGenerationStampnextValue

Popular methods of GenerationStamp

  • getCurrentValue
  • setCurrentValue
  • skipTo
  • <init>
    Create a new instance, initialized to the specified value.
  • compare
  • equalsWithWildcard
  • getStamp
    Returns the current generation stamp
  • nextStamp
    First increments the counter and then returns the stamp
  • setStamp
    Sets the current generation stamp

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Permission (java.security)
    Legacy security code; do not use.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now