All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lambdaworks.redis.output.ValueSetScanOutput Maven / Gradle / Ivy

There is a newer version: 3.40.2
Show newest version
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