com.lambdaworks.redis.output.ValueSetScanOutput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redisson Show documentation
Show all versions of redisson Show documentation
Redis Java client with features of In-Memory Data Grid
package com.lambdaworks.redis.output;
import java.nio.ByteBuffer;
import com.lambdaworks.redis.codec.RedisCodec;
import com.lambdaworks.redis.protocol.CommandOutput;
public class ValueSetScanOutput extends CommandOutput> {
public ValueSetScanOutput(RedisCodec codec) {
super(codec, new ListScanResult());
}
@Override
public void set(ByteBuffer bytes) {
if (output.getPos() == null) {
output.setPos(((Number) codec.decodeMapValue(bytes)).longValue());
} else {
output.addValue(codec.decodeMapValue(bytes));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy