Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Public Member Functions | List of all members
Contrib.Regex.CSharpRegexCapabilities Class Reference

C# Regex based implementation of IRegexCapabilities. More...

Inherits Contrib.Regex.IRegexCapabilities, and IEquatable< CSharpRegexCapabilities >.

Public Member Functions

void Compile (string pattern)
 Called by the constructor of RegexTermEnum allowing implementations to cache a compiled version of the regular expression pattern.
 
bool Match (string s)
 True on match.
 
string Prefix ()
 A wise prefix implementation can reduce the term enumeration (and thus performance) of RegexQuery dramatically.
 
bool Equals (CSharpRegexCapabilities other)
 Indicates whether the current object is equal to another object of the same type.
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Detailed Description

C# Regex based implementation of IRegexCapabilities.

http://www.java2s.com/Open-Source/Java-Document/Net/lucene-connector/org/apache/lucene/search/regex/JavaUtilRegexCapabilities.java.htm

Definition at line 26 of file CSharpRegexCapabilities.cs.

Member Function Documentation

void Contrib.Regex.CSharpRegexCapabilities.Compile ( string  pattern)

Called by the constructor of RegexTermEnum allowing implementations to cache a compiled version of the regular expression pattern.

Parameters
patternregular expression pattern

Implements Contrib.Regex.IRegexCapabilities.

Definition at line 35 of file CSharpRegexCapabilities.cs.

bool Contrib.Regex.CSharpRegexCapabilities.Equals ( CSharpRegexCapabilities  other)

Indicates whether the current object is equal to another object of the same type.

Returns
true if the current object is equal to the other parameter; otherwise, false.
Parameters
otherAn object to compare with this object

Definition at line 69 of file CSharpRegexCapabilities.cs.

override bool Contrib.Regex.CSharpRegexCapabilities.Equals ( object  obj)

Definition at line 80 of file CSharpRegexCapabilities.cs.

override int Contrib.Regex.CSharpRegexCapabilities.GetHashCode ( )

Definition at line 86 of file CSharpRegexCapabilities.cs.

bool Contrib.Regex.CSharpRegexCapabilities.Match ( string  s)

True on match.

Parameters
stext to match
Returns
true on match

Implements Contrib.Regex.IRegexCapabilities.

Definition at line 46 of file CSharpRegexCapabilities.cs.

string Contrib.Regex.CSharpRegexCapabilities.Prefix ( )

A wise prefix implementation can reduce the term enumeration (and thus performance) of RegexQuery dramatically.

Returns
static non-regex prefix of the pattern last passed to IRegexCapabilities.Compile. May return null

Implements Contrib.Regex.IRegexCapabilities.

Definition at line 57 of file CSharpRegexCapabilities.cs.


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