Class LikeOperator

  • Direct Known Subclasses:
    ILikeOperator

    public class LikeOperator
    extends BaseOperator<LikeFilter>
    A class representing the "like" operator.
    Since:
    Coherence 12.2.1
    Author:
    jk 2013.12.03
    • Field Detail

      • INSTANCE

        public static final LikeOperator INSTANCE
        An instance of the LikeOperator.
    • Constructor Detail

      • LikeOperator

        protected LikeOperator()
        Construct a LikeOperator.
      • LikeOperator

        protected LikeOperator​(String sSymbol,
                               boolean fConditional,
                               String... asAlias)
        Construct a LikeOperator.
    • Method Detail

      • makeFilter

        public LikeFilter 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<LikeFilter>
        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<LikeFilter>
        Parameters:
        tokenTable - the TokenTable to add this operator to
      • isIgnoreCase

        protected boolean isIgnoreCase()
        Returns true if the LikeFilter should be case-insensitive, otherwise returns false.
        Returns:
        the LikeOperator is case-sensitive, therefore this returns false
        Since:
        21.06