|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface SearchArgument.Builder
A builder object for contexts outside of Hive where it isn't easy to get a ExprNodeDesc. The user must call startOr, startAnd, or startNot before adding any leaves.
Method Summary | |
---|---|
SearchArgument.Builder |
between(String column,
Object lower,
Object upper)
Add a between leaf to the current item on the stack. |
SearchArgument |
build()
Build and return the SearchArgument that has been defined. |
SearchArgument.Builder |
end()
Finish the current operation and pop it off of the stack. |
SearchArgument.Builder |
equals(String column,
Object literal)
Add an equals leaf to the current item on the stack. |
SearchArgument.Builder |
in(String column,
Object... literal)
Add an in leaf to the current item on the stack. |
SearchArgument.Builder |
isNull(String column)
Add an is null leaf to the current item on the stack. |
SearchArgument.Builder |
lessThan(String column,
Object literal)
Add a less than leaf to the current item on the stack. |
SearchArgument.Builder |
lessThanEquals(String column,
Object literal)
Add a less than equals leaf to the current item on the stack. |
SearchArgument.Builder |
nullSafeEquals(String column,
Object literal)
Add a null safe equals leaf to the current item on the stack. |
SearchArgument.Builder |
startAnd()
Start building an and operation and push it on the stack. |
SearchArgument.Builder |
startNot()
Start building a not operation and push it on the stack. |
SearchArgument.Builder |
startOr()
Start building an or operation and push it on the stack. |
Method Detail |
---|
SearchArgument.Builder startOr()
SearchArgument.Builder startAnd()
SearchArgument.Builder startNot()
SearchArgument.Builder end()
SearchArgument.Builder lessThan(String column, Object literal)
column
- the name of the columnliteral
- the literal
SearchArgument.Builder lessThanEquals(String column, Object literal)
column
- the name of the columnliteral
- the literal
SearchArgument.Builder equals(String column, Object literal)
column
- the name of the columnliteral
- the literal
SearchArgument.Builder nullSafeEquals(String column, Object literal)
column
- the name of the columnliteral
- the literal
SearchArgument.Builder in(String column, Object... literal)
column
- the name of the columnliteral
- the literal
SearchArgument.Builder isNull(String column)
column
- the name of the column
SearchArgument.Builder between(String column, Object lower, Object upper)
column
- the name of the columnlower
- the literalupper
- the literal
SearchArgument build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |