Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class BloomFilterFactory

    Class used to create index-time FuzzySet appropriately configured for each field. Also called to right-size bitsets for serialization.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    System.Object
    BloomFilterFactory
    DefaultBloomFilterFactory
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Codecs.Bloom
    Assembly: Lucene.Net.Codecs.dll
    Syntax
    public abstract class BloomFilterFactory

    Methods

    | Improve this Doc View Source

    Downsize(FieldInfo, FuzzySet)

    Called when downsizing bitsets for serialization.

    Declaration
    public virtual FuzzySet Downsize(FieldInfo fieldInfo, FuzzySet initialSet)
    Parameters
    Type Name Description
    Lucene.Net.Index.FieldInfo fieldInfo

    The field with sparse set bits.

    FuzzySet initialSet

    The bits accumulated.

    Returns
    Type Description
    FuzzySet

    null or a hopefully more densely packed, smaller bitset.

    | Improve this Doc View Source

    GetSetForField(SegmentWriteState, FieldInfo)

    Declaration
    public abstract FuzzySet GetSetForField(SegmentWriteState state, FieldInfo info)
    Parameters
    Type Name Description
    Lucene.Net.Index.SegmentWriteState state

    The content to be indexed.

    Lucene.Net.Index.FieldInfo info

    The field requiring a BloomFilter.

    Returns
    Type Description
    FuzzySet

    An appropriately sized set or null if no BloomFiltering required.

    | Improve this Doc View Source

    IsSaturated(FuzzySet, FieldInfo)

    Used to determine if the given filter has reached saturation and should be retired i.e. not saved any more.

    Declaration
    public abstract bool IsSaturated(FuzzySet bloomFilter, FieldInfo fieldInfo)
    Parameters
    Type Name Description
    FuzzySet bloomFilter

    The bloomFilter being tested.

    Lucene.Net.Index.FieldInfo fieldInfo

    The field with which this filter is associated.

    Returns
    Type Description
    System.Boolean

    true if the set has reached saturation and should be retired.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 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.