ILikeMatcher Class Reference

Defines an abstract interface for the creation of LIKE predicate matchers. Used in the SQLEngine to implement the SQL LIKE predicate. More...

Inherited by DSILikeMatcher< DSIBinaryLikeMatcher >, DSILikeMatcher< DSIUnicodeLikeMatcher >, and DSILikeMatcher< T >.

List of all members.

Public Member Functions

virtual bool Match (const void *in_haystack, const simba_uint32 in_hayLength) const =0
 Compare a string against a given LIKE pattern.
virtual ~ILikeMatcher ()
 Destructor.

Detailed Description

Defines an abstract interface for the creation of LIKE predicate matchers. Used in the SQLEngine to implement the SQL LIKE predicate.


Constructor & Destructor Documentation

virtual ~ILikeMatcher (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual bool Match ( const void *  in_haystack,
const simba_uint32  in_hayLength 
) const [pure virtual]

Compare a string against a given LIKE pattern.

All data processed by Match() is required to be in the same encoding that was provided to the ICollation::CreateLikeMatcher() factory method.

Parameters:
in_haystack The string to match against. Must not be NULL (NOT OWN).
in_hayLength The length of in_haystack in bytes.
Returns:
true if the string matches against the pattern, false otherwise.

Implemented in DSILikeMatcher< T >, DSILikeMatcher< DSIBinaryLikeMatcher >, and DSILikeMatcher< DSIUnicodeLikeMatcher >.


The documentation for this class was generated from the following file:

Generated on Wed May 17 14:21:15 2017 for SimbaEngine 10.1.3.1011 by simba