org.apache.hadoop.hdfs.tools.offlineImageViewer
Class NameDistributionVisitor
java.lang.Object
org.apache.hadoop.hdfs.tools.offlineImageViewer.NameDistributionVisitor
@InterfaceAudience.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
Nested Class Summary |
protected static class |
ImageVisitor.DepthCounter
Utility class for tracking descent into the structure of the fsimage. |
static class |
ImageVisitor.ImageElement
Structural elements of an FSImage that may be encountered within the
file. |
Method Summary |
protected void |
write(String toWrite)
Write parameter to output file (and possibly screen). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameDistributionVisitor
public NameDistributionVisitor(String filename,
boolean printToScreen)
throws IOException
- Throws:
IOException
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
Copyright © 2009 The Apache Software Foundation