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.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: