public interface Expression
Find command.| Modifier and Type | Method and Description | 
|---|---|
void | 
addArguments(Deque<String> args)
Adds arguments to this expression. 
 | 
void | 
addChildren(Deque<Expression> expressions)
Adds children to this expression. 
 | 
Result | 
apply(org.apache.hadoop.fs.shell.PathData item,
     int depth)
Apply the expression to the specified item, called once for each item. 
 | 
void | 
finish()
Finishes the expression, called once after processing all items. 
 | 
String[] | 
getHelp()
Returns a description of the expression for use in help. 
 | 
int | 
getPrecedence()
Returns the precedence of this expression
 (only applicable to operators). 
 | 
String[] | 
getUsage()
Returns brief usage instructions for this expression. 
 | 
boolean | 
isAction()
Indicates whether this expression performs an action, i.e. 
 | 
boolean | 
isOperator()
Identifies the expression as an operator rather than a primary. 
 | 
void | 
prepare()
Prepares the expression for execution, called once after setting options
 and before processing any options. 
 | 
void | 
setOptions(FindOptions options)
Set the options for this expression, called once before processing any
 items. 
 | 
void setOptions(FindOptions options) throws IOException
IOExceptionvoid prepare()
             throws IOException
IOExceptionResult apply(org.apache.hadoop.fs.shell.PathData item, int depth) throws IOException
item - PathData item to be processeddepth - distance of the item from the command line argumentResult of applying the expression to the itemIOExceptionvoid finish()
            throws IOException
IOExceptionString[] getUsage()
String[] getHelp()
boolean isAction()
boolean isOperator()
int getPrecedence()
void addChildren(Deque<Expression> expressions)
expressions - deque of expressions from which to take the childrenCopyright © 2018 Apache Software Foundation. All Rights Reserved.