OfflineEditsVisitorFactory (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.tools.offlineEditsViewer, class: OfflineEditsVisitorFactory

Package org.apache.hadoop.hdfs.tools.offlineEditsViewer

# Class OfflineEditsVisitorFactory

java.lang.Object
org.apache.hadoop.hdfs.tools.offlineEditsViewer.OfflineEditsVisitorFactory

@Private @Unstable public class OfflineEditsVisitorFactory extends Object
EditsVisitorFactory for different implementations of EditsVisitor

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OfflineEditsVisitorFactory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static OfflineEditsVisitor`
  `getEditsVisitor(String filename, String processor, boolean printToScreen)`
  Factory function that creates an EditsVisitor object

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

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

- ## Constructor Details

  - ### OfflineEditsVisitorFactory

    public OfflineEditsVisitorFactory()

- ## Method Details

  - ### getEditsVisitor

    public static OfflineEditsVisitor getEditsVisitor(String filename, String processor, boolean printToScreen) throws IOException
    Factory function that creates an EditsVisitor object
    Parameters:
      `filename` - output filename
      `processor` - type of visitor to create
      `printToScreen` - parameter passed to visitor constructor
    Returns:
      EditsVisitor for appropriate output format (binary, xml, etc.)
    Throws:
      `IOException`