public class FindOptions extends Object
Find
command and its Expression
s.Constructor and Description |
---|
FindOptions() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.fs.shell.CommandFactory |
getCommandFactory()
Return the command factory.
|
Configuration |
getConfiguration()
Return the
Configuration return configuration Configuration |
PrintStream |
getErr()
Returns the error stream to be used.
|
InputStream |
getIn()
Returns the input stream to be used.
|
int |
getMaxDepth()
Returns the maximum depth for applying expressions.
|
int |
getMinDepth()
Returns the minimum depth for applying expressions.
|
PrintStream |
getOut()
Returns the output stream to be used.
|
long |
getStartTime()
Returns the start time of this
Find command. |
boolean |
isDepthFirst()
Should directory tree be traversed depth first?
|
boolean |
isFollowArgLink()
Should command line symbolic links be follows?
|
boolean |
isFollowLink()
Should symbolic links be follows?
|
void |
setCommandFactory(org.apache.hadoop.fs.shell.CommandFactory factory)
Set the command factory.
|
void |
setConfiguration(Configuration configuration)
Set the
Configuration |
void |
setDepthFirst(boolean depthFirst)
Sets flag indicating whether the expression should be applied to the
directory tree depth first.
|
void |
setErr(PrintStream err)
Sets the error stream to be used.
|
void |
setFollowArgLink(boolean followArgLink)
Sets flag indicating whether command line symbolic links should be
followed.
|
void |
setFollowLink(boolean followLink)
Sets flag indicating whether symbolic links should be followed.
|
void |
setIn(InputStream in)
Sets the input stream to be used.
|
void |
setMaxDepth(int maxDepth)
Sets the maximum depth for applying expressions.
|
void |
setMinDepth(int minDepth)
Sets the minimum depth for applying expressions.
|
void |
setOut(PrintStream out)
Sets the output stream to be used.
|
void |
setStartTime(long time)
Set the start time of this
Find command. |
public FindOptions()
public void setOut(PrintStream out)
out
- output stream to be usedpublic PrintStream getOut()
public void setErr(PrintStream err)
err
- error stream to be usedpublic PrintStream getErr()
public void setIn(InputStream in)
in
- input stream to be usedpublic InputStream getIn()
public void setDepthFirst(boolean depthFirst)
depthFirst
- true indicates depth first traversalpublic boolean isDepthFirst()
public void setFollowLink(boolean followLink)
followLink
- true indicates follow linkspublic boolean isFollowLink()
public void setFollowArgLink(boolean followArgLink)
followArgLink
- true indicates follow linkspublic boolean isFollowArgLink()
public long getStartTime()
Find
command.public void setStartTime(long time)
Find
command.time
- start time (in milliseconds since epoch)public int getMinDepth()
public void setMinDepth(int minDepth)
minDepth
- minimum depthpublic int getMaxDepth()
public void setMaxDepth(int maxDepth)
maxDepth
- maximum depthpublic void setCommandFactory(org.apache.hadoop.fs.shell.CommandFactory factory)
factory
- CommandFactory
public org.apache.hadoop.fs.shell.CommandFactory getCommandFactory()
CommandFactory
public void setConfiguration(Configuration configuration)
Configuration
configuration
- Configuration
public Configuration getConfiguration()
Configuration
return configuration Configuration
Copyright © 2017 Apache Software Foundation. All Rights Reserved.