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

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

There is a newer version: 3.43.0
Show newest version
// Copyright (C) 2011 - Will Glozer.  All rights reserved.

package com.lambdaworks.redis.output;

import java.nio.ByteBuffer;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;

import com.lambdaworks.redis.codec.RedisCodec;
import com.lambdaworks.redis.protocol.CommandOutput;

/**
 * {@link List} of keys output.
 *
 * @param  Key type.
 *
 * @author Will Glozer
 */
public class MapKeyListOutput extends CommandOutput> {
    public MapKeyListOutput(RedisCodec codec) {
        super(codec, new LinkedHashSet());
    }

    @Override
    public void set(ByteBuffer bytes) {
        output.add(codec.decodeMapKey(bytes));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy