Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | List of all members
Contrib.Regex.IRegexCapabilities Interface Reference

Defines basic operations needed by RegexQuery for a regular expression implementation. More...

Inherited by Contrib.Regex.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.
 

Detailed Description

Defines basic operations needed by RegexQuery for a regular expression implementation.

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

Definition at line 24 of file IRegexCapabilities.cs.

Member Function Documentation

void Contrib.Regex.IRegexCapabilities.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

Implemented in Contrib.Regex.CSharpRegexCapabilities.

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

True on match.

Parameters
stext to match
Returns
true on match

Implemented in Contrib.Regex.CSharpRegexCapabilities.

string Contrib.Regex.IRegexCapabilities.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 Compile. May return null

Implemented in Contrib.Regex.CSharpRegexCapabilities.


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