Class ZINTERSTORE
java.lang.Object
org.infinispan.server.resp.RespCommand
org.infinispan.server.resp.commands.sortedset.internal.AGGCommand
org.infinispan.server.resp.commands.sortedset.ZINTERSTORE
- All Implemented Interfaces:
Resp3Command
Computes the intersection of numkeys sorted sets given by the specified keys,
and stores the result in destination. It is mandatory to provide the number of input keys (numkeys)
before passing the input keys and the other (optional) arguments.
By default, the resulting score of an element is the sum of its scores in the sorted sets where it exists.
Because intersection requires an element to be a member of every given sorted set, this results in the
score of every element in the resulting sorted set to be equal to the number of input sorted sets.
For a description of the WEIGHTS and AGGREGATE options, see
ZUNIONSTORE.
If destination already exists, it is overwritten.- Since:
- 15.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.infinispan.server.resp.commands.sortedset.internal.AGGCommand
AGGCommand.AGGCommandType -
Field Summary
Fields inherited from class org.infinispan.server.resp.commands.sortedset.internal.AGGCommand
AGGREGATE, WEIGHTS, WITHSCORESFields inherited from class org.infinispan.server.resp.RespCommand
log -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.infinispan.server.resp.commands.sortedset.internal.AGGCommand
performMethods 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
-
ZINTERSTORE
public ZINTERSTORE()
-