Class JsonNumIncrOpFunction
java.lang.Object
org.infinispan.server.resp.json.JsonNumIncrOpFunction
- All Implemented Interfaces:
Serializable
,Function<EntryView.ReadWriteEntryView<byte[], JsonBucket>, List<Number>>
,SerializableFunction<EntryView.ReadWriteEntryView<byte[], JsonBucket>, List<Number>>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(EntryView.ReadWriteEntryView<byte[], JsonBucket> entryView) protected Number
operate
(com.fasterxml.jackson.databind.JsonNode numNode, com.fasterxml.jackson.databind.JsonNode incrNode)
-
Field Details
-
ERR_PATH_CAN_T_BE_NULL
- See Also:
-
ERR_INCREMENT_CANT_BE_NULL
- See Also:
-
path
@ProtoField(1) protected final byte[] path -
value
@ProtoField(2) protected final byte[] value
-
-
Constructor Details
-
JsonNumIncrOpFunction
@ProtoFactory public JsonNumIncrOpFunction(byte[] path, byte[] value)
-
-
Method Details
-
operate
protected Number operate(com.fasterxml.jackson.databind.JsonNode numNode, com.fasterxml.jackson.databind.JsonNode incrNode) -
apply
- Specified by:
apply
in interfaceFunction<EntryView.ReadWriteEntryView<byte[], JsonBucket>, List<Number>>
-