public abstract class BloomFilterFactory extends Object
FuzzySet
appropriately configured for
each field. Also called to right-size bitsets for serialization.Constructor and Description |
---|
BloomFilterFactory() |
Modifier and Type | Method and Description |
---|---|
FuzzySet |
downsize(FieldInfo fieldInfo,
FuzzySet initialSet)
Called when downsizing bitsets for serialization
|
abstract FuzzySet |
getSetForField(SegmentWriteState state,
FieldInfo info) |
abstract boolean |
isSaturated(FuzzySet bloomFilter,
FieldInfo fieldInfo)
Used to determine if the given filter has reached saturation and should be retired i.e.
|
public abstract FuzzySet getSetForField(SegmentWriteState state, FieldInfo info)
state
- The content to be indexedinfo
- the field requiring a BloomFilterpublic FuzzySet downsize(FieldInfo fieldInfo, FuzzySet initialSet)
fieldInfo
- The field with sparse set bitsinitialSet
- The bits accumulatedpublic abstract boolean isSaturated(FuzzySet bloomFilter, FieldInfo fieldInfo)
bloomFilter
- The bloomFilter being testedfieldInfo
- The field with which this filter is associatedCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.