Class NameDistributionVisitor

java.lang.Object
org.apache.hadoop.hdfs.tools.offlineImageViewer.NameDistributionVisitor

@Private public class NameDistributionVisitor extends Object
File name distribution visitor.

It analyzes file names in fsimage and prints the following information:

  • Number of unique file names
  • Number file names and the corresponding number range of files that use these same names
  • Heap saved if the file name objects are reused
  • Constructor Details

  • Method Details

    • write

      protected void write(String toWrite) throws IOException
      Write parameter to output file (and possibly screen).
      Parameters:
      toWrite - Text to write to file
      Throws:
      IOException