Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FieldCacheSanityChecker.InsanityType

    An Enumeration of the different types of "insane" behavior that may be detected in a IFieldCache.

    Inheritance
    object
    FieldCacheSanityChecker.InsanityType
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class FieldCacheSanityChecker.InsanityType

    Fields

    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.

    Declaration
    public static readonly FieldCacheSanityChecker.InsanityType EXPECTED
    Field Value
    Type Description
    FieldCacheSanityChecker.InsanityType
    See Also
    SUBREADER
    VALUEMISMATCH
    EXPECTED

    SUBREADER

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

    Declaration
    public static readonly FieldCacheSanityChecker.InsanityType SUBREADER
    Field Value
    Type Description
    FieldCacheSanityChecker.InsanityType
    See Also
    SUBREADER
    VALUEMISMATCH
    EXPECTED

    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.

    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_INT64_PARSER, etc...)

    Declaration
    public static readonly FieldCacheSanityChecker.InsanityType VALUEMISMATCH
    Field Value
    Type Description
    FieldCacheSanityChecker.InsanityType
    See Also
    SUBREADER
    VALUEMISMATCH
    EXPECTED

    Methods

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()
    See Also
    SUBREADER
    VALUEMISMATCH
    EXPECTED

    See Also

    SUBREADER
    VALUEMISMATCH
    EXPECTED
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.