Package com.aerospike.dsl
Class ParsedExpression
java.lang.Object
com.aerospike.dsl.ParsedExpression
A class to build and store the results of DSL expression parsing: parsed
expressionTree, indexesMap
of given indexes, placeholderValues to match with placeholders and ParseResult that holds
a potential secondary index Filter and a potential Exp.-
Constructor Summary
ConstructorsConstructorDescriptionParsedExpression(AbstractPart exprTree, PlaceholderValues placeholderValues, Map<String, List<Index>> indexesMap) -
Method Summary
Modifier and TypeMethodDescriptiongetResult(PlaceholderValues placeholderValues) Traverse expression tree using the given placeholder values
-
Constructor Details
-
ParsedExpression
public ParsedExpression(AbstractPart exprTree, PlaceholderValues placeholderValues, Map<String, List<Index>> indexesMap)
-
-
Method Details
-
getResult
- Returns:
ParseResultcontaining secondary indexFilterand/or filterExp. Each can be null in case of invalid or unsupported DSL string- Throws:
DslParseException- If there was an error
-
getResult
Traverse expression tree using the given placeholder values- Parameters:
placeholderValues-PlaceholderValuesto match with placeholders by index- Returns:
ParseResultcontaining secondary indexFilterand/orExp. Each can be null in case of invalid or unsupported DSL string- Throws:
DslParseException- If there was an error
-