Class BloomFilterFactory
Class used to create index-time Fuzzy
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Namespace: Lucene.Net.Codecs.Bloom
Assembly: Lucene.Net.Codecs.dll
Syntax
public abstract class BloomFilterFactory : object
Methods
| Improve this Doc View SourceDownsize(FieldInfo, FuzzySet)
Called when downsizing bitsets for serialization.
Declaration
public virtual FuzzySet Downsize(FieldInfo fieldInfo, FuzzySet initialSet)
Parameters
Type | Name | Description |
---|---|---|
Field |
fieldInfo | The field with sparse set bits. |
Fuzzy |
initialSet | The bits accumulated. |
Returns
Type | Description |
---|---|
Fuzzy |
|
GetSetForField(SegmentWriteState, FieldInfo)
Declaration
public abstract FuzzySet GetSetForField(SegmentWriteState state, FieldInfo info)
Parameters
Type | Name | Description |
---|---|---|
Segment |
state | The content to be indexed. |
Field |
info | The field requiring a BloomFilter. |
Returns
Type | Description |
---|---|
Fuzzy |
An appropriately sized set or |
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 |
---|---|---|
Fuzzy |
bloomFilter | The bloomFilter being tested. |
Field |
fieldInfo | The field with which this filter is associated. |
Returns
Type | Description |
---|---|
System. |
true if the set has reached saturation and should be retired. |