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

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

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

origin: org.apache.hadoop/hadoop-hdfs

/**
 * Upgrades the generation stamp for the filesystem
 * by reserving a sufficient range for all existing blocks.
 * Should be invoked only during the first upgrade to
 * sequential block IDs.
 */
public long upgradeLegacyGenerationStamp() {
 Preconditions.checkState(generationStamp.getCurrentValue() ==
  GenerationStamp.LAST_RESERVED_STAMP);
 generationStamp.skipTo(legacyGenerationStamp.getCurrentValue() +
  HdfsServerConstants.RESERVED_LEGACY_GENERATION_STAMPS);
 legacyGenerationStampLimit = generationStamp.getCurrentValue();
 return generationStamp.getCurrentValue();
}
origin: ch.cern.hadoop/hadoop-hdfs

/**
 * Upgrades the generation stamp for the filesystem
 * by reserving a sufficient range for all existing blocks.
 * Should be invoked only during the first upgrade to
 * sequential block IDs.
 */
public long upgradeGenerationStampToV2() {
 Preconditions.checkState(generationStampV2.getCurrentValue() ==
  GenerationStamp.LAST_RESERVED_STAMP);
 generationStampV2.skipTo(generationStampV1.getCurrentValue() +
  HdfsConstants.RESERVED_GENERATION_STAMPS_V1);
 generationStampV1Limit = generationStampV2.getCurrentValue();
 return generationStampV2.getCurrentValue();
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * Upgrades the generation stamp for the filesystem
 * by reserving a sufficient range for all existing blocks.
 * Should be invoked only during the first upgrade to
 * sequential block IDs.
 */
public long upgradeGenerationStampToV2() {
 Preconditions.checkState(generationStampV2.getCurrentValue() ==
  GenerationStamp.LAST_RESERVED_STAMP);
 generationStampV2.skipTo(generationStampV1.getCurrentValue() +
  HdfsConstants.RESERVED_GENERATION_STAMPS_V1);
 generationStampV1Limit = generationStampV2.getCurrentValue();
 return generationStampV2.getCurrentValue();
}
org.apache.hadoop.hdfs.server.commonGenerationStampskipTo

Popular methods of GenerationStamp

  • getCurrentValue
  • nextValue
  • setCurrentValue
  • <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 post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JTextField (javax.swing)
  • Best IntelliJ plugins
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