Class FindOptions

java.lang.Object
org.apache.hadoop.fs.shell.find.FindOptions

public class FindOptions extends Object
Options to be used by the Find command and its Expressions.
  • Constructor Details

    • FindOptions

      public FindOptions()
  • Method Details

    • setOut

      public void setOut(PrintStream out)
      Sets the output stream to be used.
      Parameters:
      out - output stream to be used
    • getOut

      public PrintStream getOut()
      Returns the output stream to be used.
      Returns:
      output stream to be used
    • setErr

      public void setErr(PrintStream err)
      Sets the error stream to be used.
      Parameters:
      err - error stream to be used
    • getErr

      public PrintStream getErr()
      Returns the error stream to be used.
      Returns:
      error stream to be used
    • setIn

      public void setIn(InputStream in)
      Sets the input stream to be used.
      Parameters:
      in - input stream to be used
    • getIn

      public InputStream getIn()
      Returns the input stream to be used.
      Returns:
      input stream to be used
    • setDepthFirst

      public void setDepthFirst(boolean depthFirst)
      Sets flag indicating whether the expression should be applied to the directory tree depth first.
      Parameters:
      depthFirst - true indicates depth first traversal
    • isDepthFirst

      public boolean isDepthFirst()
      Should directory tree be traversed depth first?
      Returns:
      true indicate depth first traversal
    • setFollowLink

      public void setFollowLink(boolean followLink)
      Sets flag indicating whether symbolic links should be followed.
      Parameters:
      followLink - true indicates follow links
    • isFollowLink

      public boolean isFollowLink()
      Should symbolic links be follows?
      Returns:
      true indicates links should be followed
    • setFollowArgLink

      public void setFollowArgLink(boolean followArgLink)
      Sets flag indicating whether command line symbolic links should be followed.
      Parameters:
      followArgLink - true indicates follow links
    • isFollowArgLink

      public boolean isFollowArgLink()
      Should command line symbolic links be follows?
      Returns:
      true indicates links should be followed
    • getStartTime

      public long getStartTime()
      Returns the start time of this Find command.
      Returns:
      start time (in milliseconds since epoch)
    • setStartTime

      public void setStartTime(long time)
      Set the start time of this Find command.
      Parameters:
      time - start time (in milliseconds since epoch)
    • getMinDepth

      public int getMinDepth()
      Returns the minimum depth for applying expressions.
      Returns:
      min depth
    • setMinDepth

      public void setMinDepth(int minDepth)
      Sets the minimum depth for applying expressions.
      Parameters:
      minDepth - minimum depth
    • getMaxDepth

      public int getMaxDepth()
      Returns the maximum depth for applying expressions.
      Returns:
      maximum depth
    • setMaxDepth

      public void setMaxDepth(int maxDepth)
      Sets the maximum depth for applying expressions.
      Parameters:
      maxDepth - maximum depth
    • setCommandFactory

      public void setCommandFactory(CommandFactory factory)
      Set the command factory.
      Parameters:
      factory - CommandFactory
    • getCommandFactory

      public CommandFactory getCommandFactory()
      Return the command factory.
      Returns:
      CommandFactory
    • setConfiguration

      public void setConfiguration(Configuration configuration)
      Parameters:
      configuration - Configuration
    • getConfiguration

      public Configuration getConfiguration()
      Return the Configuration return configuration Configuration
      Returns:
      configuration.