Class BloomFilterReserveFunction

java.lang.Object
org.infinispan.server.resp.commands.bloom.BloomFilterReserveFunction
All Implemented Interfaces:
Serializable, Function<EntryView.ReadWriteEntryView<byte[],Object>, Boolean>, SerializableFunction<EntryView.ReadWriteEntryView<byte[],Object>, Boolean>

@ProtoTypeId(6140) public final class BloomFilterReserveFunction extends Object implements SerializableFunction<EntryView.ReadWriteEntryView<byte[],Object>, Boolean>
Function to reserve (create) a Bloom filter with specific parameters using FunctionalMap. Used by BF.RESERVE command.
Since:
16.2
See Also:
  • Constructor Details

    • BloomFilterReserveFunction

      @ProtoFactory public BloomFilterReserveFunction(double errorRate, long capacity, int expansion, boolean nonScaling)
  • Method Details

    • getErrorRate

      @ProtoField(number=1, defaultValue="0.01") public double getErrorRate()
    • getCapacity

      @ProtoField(number=2, defaultValue="100") public long getCapacity()
    • getExpansion

      @ProtoField(number=3, defaultValue="2") public int getExpansion()
    • isNonScaling

      @ProtoField(number=4, defaultValue="false") public boolean isNonScaling()
    • apply

      public Boolean apply(EntryView.ReadWriteEntryView<byte[],Object> view)
      Specified by:
      apply in interface Function<EntryView.ReadWriteEntryView<byte[],Object>, Boolean>