C# Class Lucene.Net.Util.FieldCacheSanityChecker.InsanityType

An Enumeration of the different types of "insane" behavior that may be detected in a FieldCache.
Datei anzeigen Open project: apache/lucenenet

Public Properties

Property Type Description
EXPECTED InsanityType
SUBREADER InsanityType
VALUEMISMATCH InsanityType

Public Methods

Method Description
ToString ( ) : string

Private Methods

Method Description
InsanityType ( string label ) : System.Collections.Generic

Method Details

ToString() public method

public ToString ( ) : string
return string

Property Details

EXPECTED public_oe static_oe property

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.
public static InsanityType EXPECTED
return InsanityType

SUBREADER public_oe static_oe property

Indicates an overlap in cache usage on a given field in sub/super readers.
public static InsanityType SUBREADER
return InsanityType

VALUEMISMATCH public_oe static_oe property

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.

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

public static InsanityType VALUEMISMATCH
return InsanityType