Class OrOperator
java.lang.Object
com.tangosol.coherence.dslquery.operator.BaseOperator<AnyFilter>
com.tangosol.coherence.dslquery.operator.OrOperator
A class representing the logical OR operator.
- Since:
- Coherence 12.2.1
- Author:
- jk 2013.12.03
-
Field Summary
Fields inherited from class com.tangosol.coherence.dslquery.operator.BaseOperator
f_asAlias, f_fConditional, f_sSymbol
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToTokenTable
(TokenTable tokenTable) Add this operator to the givenTokenTable
.makeFilter
(Object oLeft, Object oRight) Create aFilter
for thisBaseOperator
using the specified left and right values.protected void
populateFilterArray
(Filter[] aFilterDest, Filter... aFilterSrc) Populate the specified targetFilter
array with the Filters in the source array.Methods inherited from class com.tangosol.coherence.dslquery.operator.BaseOperator
addAliases, getAliases, getSymbol, isConditional, makeExtractor, makeExtractor, makeFilter, toString, unmodifiableSet
-
Field Details
-
INSTANCE
An instance of the OrOperator.
-
-
Constructor Details
-
OrOperator
protected OrOperator()Construct an OrOperator.
-
-
Method Details
-
makeFilter
Description copied from class:BaseOperator
Create aFilter
for thisBaseOperator
using the specified left and right values.Note: This method should be thread safe as operators are stored in a static map so may be called by multiple threads.
- Overrides:
makeFilter
in classBaseOperator<AnyFilter>
- Parameters:
oLeft
- the left value to use to build a FilteroRight
- the right value to use to build a Filter- Returns:
- a Filter representing this operation
-
addToTokenTable
Description copied from class:BaseOperator
Add this operator to the givenTokenTable
. This typically means adding this operator using its symbol and also adding any aliases.- Specified by:
addToTokenTable
in classBaseOperator<AnyFilter>
- Parameters:
tokenTable
- the TokenTable to add this operator to
-
populateFilterArray
Populate the specified targetFilter
array with the Filters in the source array.If the any of the Filters in the source array is an
AnyFilter
then rather than adding the AnyFilter itself to the target array all of the filters contained within the AnyFilter are added to the array.- Parameters:
aFilterDest
- the Filter array to be populatedaFilterSrc
- the outer filter to add to the array
-