Class SINTER
java.lang.Object
org.infinispan.server.resp.RespCommand
org.infinispan.server.resp.commands.set.SINTER
- All Implemented Interfaces:
Resp3Command
invalid input: '{@link /*missing*/}' https://redis.io/commands/sinter/
Returns the members of the set resulting from the intersection of all the
given sets.
- Since:
- 15.0
-
Field Summary
Fields inherited from class org.infinispan.server.resp.RespCommand
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<byte[]> checkTypesAndReturnEmpty(Collection<org.infinispan.multimap.impl.SetBucket<byte[]>> buckets) static Set<byte[]> getUniqueKeys(Resp3Handler handler, List<byte[]> arguments) static List<byte[]> intersect(Collection<org.infinispan.multimap.impl.SetBucket<byte[]>> buckets, int limit) perform(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
-
SINTER
public SINTER()
-
-
Method Details
-
perform
public CompletionStage<RespRequestHandler> perform(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) - Specified by:
performin interfaceResp3Command
-
getUniqueKeys
-
checkTypesAndReturnEmpty
public static List<byte[]> checkTypesAndReturnEmpty(Collection<org.infinispan.multimap.impl.SetBucket<byte[]>> buckets) -
intersect
public static List<byte[]> intersect(Collection<org.infinispan.multimap.impl.SetBucket<byte[]>> buckets, int limit)
-