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 | Protected Member Functions | List of all members
Lucene.Net.Index.IntFieldEnumerator Class Reference

Implementation for enumerating over all of the terms in an int numeric field. More...

Inherits Lucene.Net.Index.NumericFieldEnum< T >.

Public Member Functions

 IntFieldEnumerator (IndexReader reader, string fieldName, FieldParser parser)
 Construct an enumerator over one field.
 
 IntFieldEnumerator (IndexReader reader, string fieldName, FieldParser parser, bool includeDocs)
 Construct an enumerator over one field.
 

Protected Member Functions

override bool TryParseString (string s)
 Parse the int from the string.
 
override bool TryParseNumeric (string s)
 Parse the int from an encoded string.
 
- Protected Member Functions inherited from Lucene.Net.Index.NumericFieldEnum< T >
void Init (IndexReader reader, string field, bool includeDocs, FieldParser parser)
 Initialize the instance.
 
override bool TryParse (string s)
 Overridden from base.
 
- Protected Member Functions inherited from Lucene.Net.Index.FieldEnumerator< T >
void Init (IndexReader reader, string field)
 Initialization method called by subclasses to simulate a shared base constructor as generic classes cannot have a parameterized ctor.
 
void Init (IndexReader reader, string fieldName, bool includeDocs)
 Initialization method called by subclasses to simulate a shared base constructor as generic classes cannot have a parameterized ctor.
 

Additional Inherited Members

- Protected Attributes inherited from Lucene.Net.Index.FieldEnumerator< T >
bool includeDocs
 Whether the enumerator will include TermDocs.
 
TermEnumerator tEnum
 The specialized TermEnum enumerator.
 
- Properties inherited from Lucene.Net.Index.FieldEnumerator< T >
TermEnumerator Terms [get]
 Access the enumerator for the terms.
 
TermDocEnumerator.TermDocUsingTermsEnumerator Docs [get]
 Access the enumerator for the TermDocs.
 

Detailed Description

Implementation for enumerating over all of the terms in an int numeric field.

Definition at line 613 of file FieldEnumerator.cs.

Constructor & Destructor Documentation

Lucene.Net.Index.IntFieldEnumerator.IntFieldEnumerator ( IndexReader  reader,
string  fieldName,
FieldParser  parser 
)

Construct an enumerator over one field.

Parameters
readerIndex reader.
fieldNameThe field to read.

Definition at line 620 of file FieldEnumerator.cs.

Lucene.Net.Index.IntFieldEnumerator.IntFieldEnumerator ( IndexReader  reader,
string  fieldName,
FieldParser  parser,
bool  includeDocs 
)

Construct an enumerator over one field.

Parameters
readerIndex reader.
fieldNameThe field to read.
includeDocsWhether the TermDocs will also be enumerated.

Definition at line 631 of file FieldEnumerator.cs.

Member Function Documentation

override bool Lucene.Net.Index.IntFieldEnumerator.TryParseNumeric ( string  s)
protectedvirtual

Parse the int from an encoded string.

Parameters
sString to parse.
Returns
True if the parse was successful, false indicating failure and the end of useful terms in the numeric field.

Implements Lucene.Net.Index.NumericFieldEnum< T >.

Definition at line 653 of file FieldEnumerator.cs.

override bool Lucene.Net.Index.IntFieldEnumerator.TryParseString ( string  s)
protectedvirtual

Parse the int from the string.

Parameters
sString to parse.
Returns
Always true.

Implements Lucene.Net.Index.NumericFieldEnum< T >.

Definition at line 641 of file FieldEnumerator.cs.


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