Class CuckooFilterInsertFunction
java.lang.Object
org.infinispan.server.resp.commands.cuckoo.CuckooFilterInsertFunction
- All Implemented Interfaces:
Serializable, Function<EntryView.ReadWriteEntryView<byte[],Object>, List<Integer>>, SerializableFunction<EntryView.ReadWriteEntryView<byte[], Object>, List<Integer>>
@ProtoTypeId(6148)
public final class CuckooFilterInsertFunction
extends Object
implements SerializableFunction<EntryView.ReadWriteEntryView<byte[],Object>, List<Integer>>
Function to insert items into a Cuckoo filter with creation options using FunctionalMap.
Used by CF.INSERT and CF.INSERTNX commands.
- Since:
- 16.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCuckooFilterInsertFunction(List<byte[]> items, long capacity, boolean noCreate, boolean onlyIfNotExists) -
Method Summary
Modifier and TypeMethodDescriptionapply(EntryView.ReadWriteEntryView<byte[], Object> view) longbooleanboolean
-
Constructor Details
-
CuckooFilterInsertFunction
public CuckooFilterInsertFunction(List<byte[]> items, long capacity, boolean noCreate, boolean onlyIfNotExists)
-
-
Method Details
-
getCapacity
@ProtoField(number=2, defaultValue="1024") public long getCapacity() -
isNoCreate
@ProtoField(number=3, defaultValue="false") public boolean isNoCreate() -
isOnlyIfNotExists
@ProtoField(number=4, defaultValue="false") public boolean isOnlyIfNotExists() -
apply
-