congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
GenerationStamp.getCurrentValue
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.hadoop/hadoop-hdfs

/**
 * Gets the current generation stamp for legacy blocks
 */
public long getLegacyGenerationStamp() {
 return legacyGenerationStamp.getCurrentValue();
}
origin: org.apache.hadoop/hadoop-hdfs

public long getGenerationStamp() {
 return generationStamp.getCurrentValue();
}
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

public long getGenerationStampV2() {
 return generationStampV2.getCurrentValue();
}
origin: ch.cern.hadoop/hadoop-hdfs

/**
 * Gets the current generation stamp for legacy blocks
 */
public long getGenerationStampV1() {
 return generationStampV1.getCurrentValue();
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * Gets the current generation stamp for legacy blocks
 */
public long getGenerationStampV1() {
 return generationStampV1.getCurrentValue();
}
origin: io.prestosql.hadoop/hadoop-apache

public long getGenerationStampV2() {
 return generationStampV2.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.commonGenerationStampgetCurrentValue

Popular methods of GenerationStamp

  • nextValue
  • 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

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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