Class ContainsOperator

java.lang.Object
com.tangosol.coherence.dslquery.operator.BaseOperator<ContainsFilter>
com.tangosol.coherence.dslquery.operator.ContainsOperator

public class ContainsOperator extends BaseOperator<ContainsFilter>
An operator representing the conditional "contains" operation.
Since:
Coherence 12.2.1
Author:
jk 2013.12.03
  • Field Details

    • INSTANCE

      public static final ContainsOperator INSTANCE
      An instance of the ContainsOperator.
  • Constructor Details

    • ContainsOperator

      protected ContainsOperator()
      Construct a ContainsOperator.
  • Method Details

    • makeFilter

      public ContainsFilter makeFilter(Object oLeft, Object oRight)
      Description copied from class: BaseOperator
      Create a Filter for this BaseOperator 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 class BaseOperator<ContainsFilter>
      Parameters:
      oLeft - the left value to use to build a Filter
      oRight - the right value to use to build a Filter
      Returns:
      a Filter representing this operation
    • addToTokenTable

      public void addToTokenTable(TokenTable tokenTable)
      Description copied from class: BaseOperator
      Add this operator to the given TokenTable. This typically means adding this operator using its symbol and also adding any aliases.
      Specified by:
      addToTokenTable in class BaseOperator<ContainsFilter>
      Parameters:
      tokenTable - the TokenTable to add this operator to