Package | Description |
---|---|
org.apache.ambari.server.api.predicate | |
org.apache.ambari.server.api.predicate.expressions | |
org.apache.ambari.server.api.predicate.operators |
Modifier and Type | Method and Description |
---|---|
Predicate |
PredicateCompiler.compile(String exp)
Generate a predicate from a query expression.
|
Predicate |
QueryParser.parse(Token[] tokens)
Generate a Predicate instance from an array of tokens.
|
Token[] |
QueryLexer.tokens(String exp)
Scan the provided query and generate a token stream to be used by the query parser.
|
Modifier and Type | Method and Description |
---|---|
static LogicalExpression |
LogicalExpressionFactory.createLogicalExpression(LogicalOperator op)
Create a logical expression instance.
|
Predicate |
NotLogicalExpression.toPredicate() |
Predicate |
RelationalExpression.toPredicate() |
Predicate |
LogicalExpression.toPredicate() |
Predicate |
Expression.toPredicate()
Get the predicate representation of the expression.
|
Modifier and Type | Method and Description |
---|---|
static RelationalOperator |
RelationalOperatorFactory.createOperator(String operator)
Create a relational operator based on the string representation
of the operator.
|
static LogicalOperator |
LogicalOperatorFactory.createOperator(String operator,
int ctxPrecedence)
Creates a logical operator based on the operator token.
|
Predicate |
RelationalOperator.toPredicate(String prop,
String val)
Create a predicate for this relational operator.
|
Predicate |
InOperator.toPredicate(String prop,
String val) |
Predicate |
IsEmptyOperator.toPredicate(String prop,
String val) |
Copyright © 2014. All rights reserved.