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 | Static Public Attributes | List of all members
Lucene.Net.Util.FieldCacheSanityChecker.InsanityType Class Reference

An Enumaration of the differnet types of "insane" behavior that may be detected in a FieldCache. More...

Public Member Functions

override System.String ToString ()
 

Static Public Attributes

static readonly InsanityType SUBREADER = new InsanityType("SUBREADER")
 Indicates an overlap in cache usage on a given field in sub/super readers.
 
static readonly InsanityType VALUEMISMATCH = new InsanityType("VALUEMISMATCH")
 Indicates entries have the same reader+fieldname but different cached values. This can happen if different datatypes, or parsers are used – and while it's not necessarily a bug it's typically an indication of a possible problem. PNOTE: Only the reader, fieldname, and cached value are actually tested – if two cache entries have different parsers or datatypes but the cached values are the same Object (== not just equal()) this method does not consider that a red flag. This allows for subtle variations in the way a Parser is specified (null vs DEFAULT_LONG_PARSER, etc...)
 
static readonly InsanityType EXPECTED = new InsanityType("EXPECTED")
 Indicates an expected bit of "insanity". This may be useful for clients that wish to preserve/log information about insane usage but indicate that it was expected.
 

Detailed Description

An Enumaration of the differnet types of "insane" behavior that may be detected in a FieldCache.

See Also
InsanityType.SUBREADER
See Also
InsanityType.VALUEMISMATCH
See Also
InsanityType.EXPECTED

Definition at line 399 of file FieldCacheSanityChecker.cs.

Member Function Documentation

override System.String Lucene.Net.Util.FieldCacheSanityChecker.InsanityType.ToString ( )

Definition at line 406 of file FieldCacheSanityChecker.cs.

Member Data Documentation

readonly InsanityType Lucene.Net.Util.FieldCacheSanityChecker.InsanityType.EXPECTED = new InsanityType("EXPECTED")
static

Indicates an expected bit of "insanity". This may be useful for clients that wish to preserve/log information about insane usage but indicate that it was expected.

Definition at line 436 of file FieldCacheSanityChecker.cs.

readonly InsanityType Lucene.Net.Util.FieldCacheSanityChecker.InsanityType.SUBREADER = new InsanityType("SUBREADER")
static

Indicates an overlap in cache usage on a given field in sub/super readers.

Definition at line 414 of file FieldCacheSanityChecker.cs.

readonly InsanityType Lucene.Net.Util.FieldCacheSanityChecker.InsanityType.VALUEMISMATCH = new InsanityType("VALUEMISMATCH")
static

Indicates entries have the same reader+fieldname but different cached values. This can happen if different datatypes, or parsers are used – and while it's not necessarily a bug it's typically an indication of a possible problem. PNOTE: Only the reader, fieldname, and cached value are actually tested – if two cache entries have different parsers or datatypes but the cached values are the same Object (== not just equal()) this method does not consider that a red flag. This allows for subtle variations in the way a Parser is specified (null vs DEFAULT_LONG_PARSER, etc...)

Definition at line 430 of file FieldCacheSanityChecker.cs.


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