Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.util.filter
Class RegexFilter

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.BitHelper
          extended by com.tangosol.util.ExternalizableHelper
              extended by com.tangosol.util.filter.AbstractQueryRecorderFilter
                  extended by com.tangosol.util.filter.ExtractorFilter
                      extended by com.tangosol.util.filter.ComparisonFilter
                          extended by com.tangosol.util.filter.RegexFilter

All Implemented Interfaces:
ExternalizableLite, PortableObject, Filter, EntryFilter, IndexAwareFilter, QueryRecorderFilter, java.io.Serializable

public class RegexFilter
extends ComparisonFilter

Filter which uses the regular expression pattern match defined by the String.matches(String) contract. This implementation is not index aware and will not take advantage of existing indexes.

Since:
Coherence 3.6
Author:
gg 2010.05.02

Field Summary

 

Fields inherited from class com.tangosol.util.filter.ComparisonFilter
m_oValue

 

Fields inherited from class com.tangosol.util.filter.ExtractorFilter
EVAL_COST, m_extractor

 

Constructor Summary
RegexFilter()
          Default constructor (necessary for the ExternalizableLite interface).
RegexFilter(java.lang.String sMethod, java.lang.String sRegex)
          Construct a RegexFilter for testing pattern matching.
RegexFilter(ValueExtractor extractor, java.lang.String sRegex)
          Construct a RegexFilter for testing pattern matching.

 

Method Summary
protected  boolean evaluateExtracted(java.lang.Object oExtracted)
          Evaluate the specified extracted value.

 

Methods inherited from class com.tangosol.util.filter.ComparisonFilter
calculateMatchEffectiveness, calculateRangeEffectiveness, equals, getValue, hashCode, readExternal, readExternal, toString, toStringValue, writeExternal, writeExternal

 

Methods inherited from class com.tangosol.util.filter.ExtractorFilter
applyIndex, calculateEffectiveness, calculateIteratorEffectiveness, evaluate, evaluateEntry, extract, getValueExtractor

 

Methods inherited from class com.tangosol.util.filter.AbstractQueryRecorderFilter
explain, explain, explain, trace, trace, trace, trace, trace

 

Methods inherited from class com.tangosol.util.BitHelper
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, rotateLeft, rotateLeft, rotateLeft, rotateRight, rotateRight, rotateRight, toBitString, toBitString, toBitString

 

Constructor Detail

RegexFilter

public RegexFilter()
Default constructor (necessary for the ExternalizableLite interface).

RegexFilter

public RegexFilter(ValueExtractor extractor,
                   java.lang.String sRegex)
Construct a RegexFilter for testing pattern matching.
Parameters:
extractor - the ValueExtractor to use by this filter
sRegex - the regular expression to match the result with

RegexFilter

public RegexFilter(java.lang.String sMethod,
                   java.lang.String sRegex)
Construct a RegexFilter for testing pattern matching.
Parameters:
sMethod - the name of the method to invoke via reflection
sRegex - the regular expression to match the result with

Method Detail

evaluateExtracted

protected boolean evaluateExtracted(java.lang.Object oExtracted)
Evaluate the specified extracted value.
Specified by:
evaluateExtracted in class ExtractorFilter
Parameters:
oExtracted - an extracted value to evaluate
Returns:
true iff the test passes

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.