INodeCountVisitor (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.namenode.visitor, class: INodeCountVisitor

Package org.apache.hadoop.hdfs.server.namenode.visitor

# Class INodeCountVisitor

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.visitor.INodeCountVisitor

All Implemented Interfaces:
  `NamespaceVisitor`

public class INodeCountVisitor extends Object implements NamespaceVisitor
For validating `FSImage`s.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static interface`
  `INodeCountVisitor.Counts`

  ## Nested classes/interfaces inherited from interface org.apache.hadoop.hdfs.server.namenode.visitor.NamespaceVisitor

  `NamespaceVisitor.Element, NamespaceVisitor.INodeVisitor`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `INodeCountVisitor()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static INodeCountVisitor.Counts`
  `countTree(INode root)`
  `NamespaceVisitor.INodeVisitor`
  `getDefaultVisitor()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface org.apache.hadoop.hdfs.server.namenode.visitor.NamespaceVisitor

  `postVisitReferred, postVisitSub, preVisitReferred, preVisitSub, visitDirectory, visitDirectoryRecursively, visitFile, visitReference, visitReferenceRecursively, visitSnapshottable, visitSubs, visitSymlink`

- ## Constructor Details

  - ### INodeCountVisitor

    public INodeCountVisitor()

- ## Method Details

  - ### countTree

    public static INodeCountVisitor.Counts countTree(INode root)

  - ### getDefaultVisitor

    public NamespaceVisitor.INodeVisitor getDefaultVisitor()
    Specified by:
      `getDefaultVisitor` in interface `NamespaceVisitor`
    Returns:
      the default (non-recursive) `NamespaceVisitor.INodeVisitor`.