Tabnine Logo
ReplicaInfo.setNumBytes
Code IndexAdd Tabnine to your IDE (free)

How to use
setNumBytes
method
in
org.apache.hadoop.hdfs.server.datanode.ReplicaInfo

Best Java code snippets using org.apache.hadoop.hdfs.server.datanode.ReplicaInfo.setNumBytes (Showing top 9 results out of 315)

origin: ch.cern.hadoop/hadoop-hdfs

@Override //org.apache.hadoop.hdfs.protocol.Block
public void setNumBytes(long numBytes) {
 super.setNumBytes(numBytes);
 original.setNumBytes(numBytes);
}

origin: io.prestosql.hadoop/hadoop-apache

@Override //org.apache.hadoop.hdfs.protocol.Block
public void setNumBytes(long numBytes) {
 super.setNumBytes(numBytes);
 original.setNumBytes(numBytes);
}

origin: org.apache.hadoop/hadoop-hdfs

public ReplicaInfo moveBlockToTmpLocation(ExtendedBlock block,
  ReplicaInfo replicaInfo,
  int smallBufferSize,
  Configuration conf) throws IOException {
 File[] blockFiles = FsDatasetImpl.copyBlockFiles(block.getBlockId(),
   block.getGenerationStamp(), replicaInfo,
   getTmpDir(block.getBlockPoolId()),
   replicaInfo.isOnTransientStorage(), smallBufferSize, conf);
 ReplicaInfo newReplicaInfo = new ReplicaBuilder(ReplicaState.TEMPORARY)
   .setBlockId(replicaInfo.getBlockId())
   .setGenerationStamp(replicaInfo.getGenerationStamp())
   .setFsVolume(this)
   .setDirectoryToUse(blockFiles[0].getParentFile())
   .setBytesToReserve(0)
   .build();
 newReplicaInfo.setNumBytes(blockFiles[1].length());
 return newReplicaInfo;
}
origin: org.apache.hadoop/hadoop-hdfs

 rur.truncateBlock(newlength);
 rur.setNumBytes(newlength);
} else {
origin: org.apache.hadoop/hadoop-hdfs

  + memBlockInfo.getNumBytes() + " to "
  + memBlockInfo.getBlockDataLength());
memBlockInfo.setNumBytes(memBlockInfo.getBlockDataLength());
origin: ch.cern.hadoop/hadoop-hdfs

LOG.warn("Updating size of block " + blockId + " from "
  + memBlockInfo.getNumBytes() + " to " + memFile.length());
memBlockInfo.setNumBytes(memFile.length());
origin: io.prestosql.hadoop/hadoop-apache

LOG.warn("Updating size of block " + blockId + " from "
  + memBlockInfo.getNumBytes() + " to " + memFile.length());
memBlockInfo.setNumBytes(memFile.length());
origin: io.prestosql.hadoop/hadoop-apache

  replicaInfo.getBlockId(), replicaInfo.getGenerationStamp(),
  targetVolume, blockFiles[0].getParentFile(), 0);
newReplicaInfo.setNumBytes(blockFiles[1].length());
origin: ch.cern.hadoop/hadoop-hdfs

  replicaInfo.getBlockId(), replicaInfo.getGenerationStamp(),
  targetVolume, blockFiles[0].getParentFile(), 0);
newReplicaInfo.setNumBytes(blockFiles[1].length());
org.apache.hadoop.hdfs.server.datanodeReplicaInfosetNumBytes

Popular methods of ReplicaInfo

  • getBlockId
  • getBytesOnDisk
  • getGenerationStamp
  • getNumBytes
  • getState
  • getVolume
    Get the volume where this replica is located on disk
  • getBlockFile
    Get the full path of this replica's data file
  • getMetaFile
    Get the full path of this replica's meta file
  • getBlockName
  • getBytesReserved
    Number of bytes reserved for this replica on disk.
  • getStorageUuid
    Get the storageUuid of the volume that stores this replica.
  • getVisibleLength
  • getStorageUuid,
  • getVisibleLength,
  • isOnTransientStorage,
  • setGenerationStamp,
  • equals,
  • getDir,
  • hashCode,
  • isUnlinked,
  • parseBaseDir

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top plugins for WebStorm
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