Class CuckooFilterReserveFunction
java.lang.Object
org.infinispan.server.resp.commands.cuckoo.CuckooFilterReserveFunction
- All Implemented Interfaces:
Serializable, Function<EntryView.ReadWriteEntryView<byte[],Object>, Boolean>, SerializableFunction<EntryView.ReadWriteEntryView<byte[], Object>, Boolean>
@ProtoTypeId(6147)
public final class CuckooFilterReserveFunction
extends Object
implements SerializableFunction<EntryView.ReadWriteEntryView<byte[],Object>, Boolean>
Function to reserve (create) a Cuckoo filter with specific parameters using FunctionalMap.
Used by CF.RESERVE command.
- Since:
- 16.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCuckooFilterReserveFunction(long capacity, int bucketSize, int maxIterations, int expansion) -
Method Summary
Modifier and TypeMethodDescriptionapply(EntryView.ReadWriteEntryView<byte[], Object> view) intlongintint
-
Constructor Details
-
CuckooFilterReserveFunction
@ProtoFactory public CuckooFilterReserveFunction(long capacity, int bucketSize, int maxIterations, int expansion)
-
-
Method Details
-
getCapacity
@ProtoField(number=1, defaultValue="1024") public long getCapacity() -
getBucketSize
@ProtoField(number=2, defaultValue="2") public int getBucketSize() -
getMaxIterations
@ProtoField(number=3, defaultValue="20") public int getMaxIterations() -
getExpansion
@ProtoField(number=4, defaultValue="1") public int getExpansion() -
apply
- Specified by:
applyin interfaceFunction<EntryView.ReadWriteEntryView<byte[],Object>, Boolean>
-