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

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

# Class FSImageFormatPBINode.Saver

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.FSImageFormatPBINode.Saver

Enclosing class:
  FSImageFormatPBINode

public static final class FSImageFormatPBINode.Saver extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static FsImageProto.INodeSection.INodeDirectory.Builder`
  `buildINodeDirectory(INodeDirectoryAttributes dir, FSImageFormatProtobuf.SaverContext state)`
  `static FsImageProto.INodeSection.INodeFile.Builder`
  `buildINodeFile(INodeFileAttributes file, FSImageFormatProtobuf.SaverContext state)`
  `long`
  `getNumImageErrors()`
  Number of non-fatal errors detected while writing the INodeSection and INodeDirectorySection sections.

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

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

- ## Method Details

  - ### buildINodeFile

    public static FsImageProto.INodeSection.INodeFile.Builder buildINodeFile(INodeFileAttributes file, FSImageFormatProtobuf.SaverContext state)

  - ### buildINodeDirectory

    public static FsImageProto.INodeSection.INodeDirectory.Builder buildINodeDirectory(INodeDirectoryAttributes dir, FSImageFormatProtobuf.SaverContext state)

  - ### getNumImageErrors

    public long getNumImageErrors()
    Number of non-fatal errors detected while writing the INodeSection and INodeDirectorySection sections.
    Returns:
      the number of non-fatal errors detected.