public class SelectListMaker extends AbstractCoherenceQueryWalker
Modifier and Type | Field and Description |
---|---|
protected Object[] |
m_aResults
The results of the classification
|
protected int |
m_nCallCount
The count of classifications that are calls
tree of Objects is built
|
protected String |
m_sCacheName
The name of the cache that the select list is being built for
|
protected NodeTerm |
m_term
The Term that is the AST that encodes select list
|
f_language, f_propertyBuilder, f_termKeyFunction, m_atomicTerm, m_fExtendedLanguage, m_listBindVars, m_namedBindVars, m_oResult, m_sAlias
Constructor and Description |
---|
SelectListMaker(List indexedBindVars,
com.tangosol.config.expression.ParameterResolver namedBindVars,
CoherenceQueryLanguage language)
Construct a new SelectListMaker using given array for indexed
Bind vars and the given Map for named bind variables.
|
Modifier and Type | Method and Description |
---|---|
protected void |
acceptBinaryOperator(String sOperator,
Term termLeft,
Term termRight)
The receiver has classified a binary operation node
|
protected void |
acceptCall(String sFunctionName,
NodeTerm term)
The receiver has classified a call node
|
protected void |
acceptIdentifier(String sIdentifier)
The receiver has classified an identifier node.
|
protected void |
acceptPath(NodeTerm term)
The receiver has classified a path node.
|
DistinctValues |
getDistinctValues()
Turn the results of tree processing into a DistinctValues aggregator
|
Object[] |
getResults()
Get the resultant Object[] from the tree processing
|
InvocableMap.EntryAggregator |
getResultsAsEntryAggregator()
Turn the results of tree processing into an
InvocableMap.EntryAggregator that will perform the aggregation.
|
InvocableMap.EntryProcessor |
getResultsAsEntryProcessor()
Turn the results of tree processing into an InvocableMap.EntryProcessor
that will return the results of a query
|
InvocableMap.EntryAggregator |
getResultsAsReduction()
Turn the results of tree processing into an InvocableMap.EntryAggregator
that will return the results of a query.
|
ValueExtractor |
getResultsAsValueExtractor()
Turn the results of tree processing into a ValueExtractor
|
boolean |
hasCalls()
Test to see if the receiver had nodes that are call which would mean
the result is an aggregation
|
boolean |
isAggregation()
Test to see if the results of processing resulted in an aggregation.
|
Object[] |
makeSelectsForCache(String sCacheName,
NodeTerm term)
Process the AST Tree using the given Term
|
acceptAtom, acceptIdentifierInternal, acceptKeyedBinding, acceptList, acceptLiteral, acceptNode, acceptNumericBinding, acceptPathAsChainedExtractor, acceptTerm, acceptUnaryOperator, append, buildExtractor, getResult, reflectiveMakeObject, setAlias, setExtendedLanguage, setResult, walk
protected String m_sCacheName
protected NodeTerm m_term
protected int m_nCallCount
protected Object[] m_aResults
public SelectListMaker(List indexedBindVars, com.tangosol.config.expression.ParameterResolver namedBindVars, CoherenceQueryLanguage language)
indexedBindVars
- the indexed bind variablesnamedBindVars
- the named bind variableslanguage
- the CoherenceQueryLanguage instance to usepublic boolean hasCalls()
public boolean isAggregation()
public Object[] getResults()
public ValueExtractor getResultsAsValueExtractor()
public DistinctValues getDistinctValues()
public InvocableMap.EntryProcessor getResultsAsEntryProcessor()
public InvocableMap.EntryAggregator getResultsAsReduction()
public InvocableMap.EntryAggregator getResultsAsEntryAggregator()
public Object[] makeSelectsForCache(String sCacheName, NodeTerm term)
sCacheName
- the name of the cache to make select list forterm
- the AST to walk to make the select listprotected void acceptBinaryOperator(String sOperator, Term termLeft, Term termRight)
acceptBinaryOperator
in class AbstractCoherenceQueryWalker
sOperator
- the String representing the operatortermLeft
- the left Term of the operationtermRight
- the left Term of the operationprotected void acceptCall(String sFunctionName, NodeTerm term)
acceptCall
in class AbstractCoherenceQueryWalker
sFunctionName
- the function nameterm
- a Term whose children are the parameters to the callprotected void acceptIdentifier(String sIdentifier)
AbstractCoherenceQueryWalker
acceptIdentifier
in class AbstractCoherenceQueryWalker
sIdentifier
- the String representing the identifierprotected void acceptPath(NodeTerm term)
AbstractCoherenceQueryWalker
acceptPath
in class AbstractCoherenceQueryWalker
term
- a Term whose children are the elements of the path