Class ZCOUNT
java.lang.Object
org.infinispan.server.resp.RespCommand
org.infinispan.server.resp.commands.sortedset.ZCOUNT
- All Implemented Interfaces:
Resp3Command
Returns the number of elements in the sorted set at key with a score between min and max.
Min and max can be -inf and +inf, so that you are not required to know the highest or lowest score
in the sorted set to get all elements from or up to a certain score.
By default, the interval specified by min and max is closed (inclusive).
It is possible to specify an open interval (exclusive) by prefixing the score with the character (.
min and max can be -inf and +inf, so that you are not required to know the highest or
lowest score in the sorted set to get all elements from or up to a certain score.
For example:
- ZCOUNT people (1 5 Will return all elements with 1 invalid input: '<' score invalid input: '<'= 5
while:
- ZCOUNT people (5 (10
Will return all the elements with 5 invalid input: '<' score invalid input: '<' 10 (5 and 10 excluded).
- Since:
- 15.0
- See Also:
-
Field Summary
Fields inherited from class org.infinispan.server.resp.RespCommand
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionperform(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) Methods inherited from class org.infinispan.server.resp.RespCommand
extractKeys, fromByteBuf, getArity, getFirstKeyPos, getLastKeyPos, getName, getSteps, handleException, hasValidNumberOfArguments, match, size, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.server.resp.commands.Resp3Command
handleException
-
Constructor Details
-
ZCOUNT
public ZCOUNT()
-
-
Method Details
-
perform
public CompletionStage<RespRequestHandler> perform(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) - Specified by:
performin interfaceResp3Command
-