public class FilterBuilder extends AbstractCoherenceQueryWalker
| Modifier and Type | Field and Description |
|---|---|
protected com.tangosol.config.expression.ParameterResolver |
f_defaultNamedBindVars
The default named bind variables.
|
protected List |
f_listDefaultBindVars
The default indexed bind variables.
|
protected String |
m_sCacheName
The cache name this FilterBuilder is building
Filters to query
against. |
protected Term |
m_term
The Term that is the AST that encodes the Filter to be made.
|
f_language, f_propertyBuilder, f_termKeyFunction, m_atomicTerm, m_fExtendedLanguage, m_listBindVars, m_namedBindVars, m_oResult, m_sAlias| Constructor and Description |
|---|
FilterBuilder()
Construct a new FilterBuilder.
|
FilterBuilder(CoherenceQueryLanguage language)
Construct a new FilterBuilder.
|
FilterBuilder(List indexedBindVars,
com.tangosol.config.expression.ParameterResolver namedBindVars,
CoherenceQueryLanguage language)
Construct a new FilterBuilder with given default bind variables.
|
FilterBuilder(Object[] aoBindVars)
Construct a new FilterBuilder with given binding environment.
|
FilterBuilder(Object[] aoBindVars,
Map mapNamedBindVars)
Construct a new FilterBuilder with given binding environment.
|
FilterBuilder(Term term)
Construct a new FilterBuilder that can construct a Filter from the
given Term.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
acceptBinaryOperator(String sOperator,
Term termLeft,
Term termRight)
This method will take a Binary Operator and the left and right
Terms
for the operator and result in the creation of a Filter or a ValueExtractor. |
protected void |
acceptIdentifier(String sIdentifier)
The receiver has classified an identifier node.
|
protected void |
acceptList(NodeTerm termList)
The receiver has classified a list node.
|
protected void |
acceptPath(NodeTerm term)
The receiver has classified a path node.
|
protected void |
acceptUnaryOperator(String sOperator,
Term t)
The receiver has classified a unary operation node.
|
ValueExtractor |
makeExtractor(NodeTerm term)
Process the AST Tree using the given Term that represents getter.
|
Filter |
makeFilter()
Make a new Filter from the set AST.
|
Filter |
makeFilter(Term term)
Make a new Filter from the given AST.
|
Filter |
makeFilter(Term term,
List listBindVars,
com.tangosol.config.expression.ParameterResolver namedBindVars)
Make a new Filter from the given AST using the given bind variables.
|
Filter |
makeFilter(Term term,
Object[] aoIndexedBindVars)
Make a new Filter from the given AST using given array for Bind vars.
|
Filter |
makeFilter(Term term,
Object[] aoIndexedBindVars,
Map mapNamedBindVars)
Make a new Filter from the given AST using the given bind variables.
|
Filter |
makeFilterForCache(String sCacheName,
Term term,
List indexedBindVars,
com.tangosol.config.expression.ParameterResolver namedBindVars)
Make a new Filter from the given AST using given array for Bind vars.
|
protected static ParameterList |
newParameterListFromMap(Map<?,?> map)
Convert the given
Map into a ParameterList. |
acceptAtom, acceptCall, acceptIdentifierInternal, acceptKeyedBinding, acceptLiteral, acceptNode, acceptNumericBinding, acceptPathAsChainedExtractor, acceptTerm, append, buildExtractor, getResult, reflectiveMakeObject, setAlias, setExtendedLanguage, setResult, walkprotected Term m_term
protected String m_sCacheName
Filters to query
against.
This is used by the language's ExtractorBuilder to map attribute names to POF indices. A null cache
name results in the use of ReflectionExtractors.
protected final List f_listDefaultBindVars
protected final com.tangosol.config.expression.ParameterResolver f_defaultNamedBindVars
public FilterBuilder()
public FilterBuilder(CoherenceQueryLanguage language)
language - the CoherenceQueryLanguage instance to usepublic FilterBuilder(Object[] aoBindVars)
aoBindVars - an Object array of indexed bind variablespublic FilterBuilder(Term term)
term - the Term to use in the construction of a filterpublic FilterBuilder(Object[] aoBindVars, Map mapNamedBindVars)
aoBindVars - indexed bind variablesmapNamedBindVars - named bind variablespublic FilterBuilder(List indexedBindVars, com.tangosol.config.expression.ParameterResolver namedBindVars, CoherenceQueryLanguage language)
indexedBindVars - the indexed bind variablesnamedBindVars - the named bind variableslanguage - the CoherenceQueryLanguage instance to usepublic Filter makeFilter()
public Filter makeFilter(Term term)
term - the AST to turn into a Filterpublic Filter makeFilter(Term term, Object[] aoIndexedBindVars)
term - the AST to turn into a FilteraoIndexedBindVars - the array of Objects to use for Bind varspublic Filter makeFilter(Term term, Object[] aoIndexedBindVars, Map mapNamedBindVars)
term - the AST to turn into a FilteraoIndexedBindVars - the array of Objects to use for bind variablesmapNamedBindVars - the named bind variables to usepublic Filter makeFilter(Term term, List listBindVars, com.tangosol.config.expression.ParameterResolver namedBindVars)
term - the AST to turn into a FilterlistBindVars - the indexed bind variablesnamedBindVars - the named bind variablespublic Filter makeFilterForCache(String sCacheName, Term term, List indexedBindVars, com.tangosol.config.expression.ParameterResolver namedBindVars)
sCacheName - the name of the cache the Filter is to queryterm - the AST to turn into a FilterindexedBindVars - the indexed bind variables to usenamedBindVars - the named bind variables to usepublic ValueExtractor makeExtractor(NodeTerm term)
term - the AST usedprotected void acceptList(NodeTerm termList)
AbstractCoherenceQueryWalkeracceptList in class AbstractCoherenceQueryWalkertermList - the Term whose children represent the elements of the listprotected void acceptIdentifier(String sIdentifier)
AbstractCoherenceQueryWalkeracceptIdentifier in class AbstractCoherenceQueryWalkersIdentifier - the String representing the identifierprotected void acceptBinaryOperator(String sOperator, Term termLeft, Term termRight)
Terms
for the operator and result in the creation of a Filter or a ValueExtractor.acceptBinaryOperator in class AbstractCoherenceQueryWalkersOperator - the string representing the operatortermLeft - the left Term of the operationtermRight - the right Term of the operationprotected void acceptUnaryOperator(String sOperator, Term t)
AbstractCoherenceQueryWalkeracceptUnaryOperator in class AbstractCoherenceQueryWalkersOperator - the string representing the operatort - the Term being operated uponprotected void acceptPath(NodeTerm term)
AbstractCoherenceQueryWalkeracceptPath in class AbstractCoherenceQueryWalkerterm - a Term whose children are the elements of the pathprotected static ParameterList newParameterListFromMap(Map<?,?> map)
Map into a ParameterList.
The key of the map is used as the parameter name and the
corresponding value as the parameter value.map - the Map to convert to a ParameterList