com.redis.spring.batch.reader.StructItemReader Maven / Gradle / Ivy
The newest version!
package com.redis.spring.batch.reader;
import com.redis.spring.batch.common.Operation;
import java.io.IOException;
import com.redis.spring.batch.common.KeyValue;
import com.redis.spring.batch.reader.KeyValueReadOperation.Type;
import io.lettuce.core.AbstractRedisClient;
import io.lettuce.core.codec.RedisCodec;
public class StructItemReader extends AbstractKeyValueItemReader {
public StructItemReader(AbstractRedisClient client, RedisCodec codec) {
super(client, codec);
}
@Override
protected Operation> operation() throws IOException {
KeyValueReadOperation operation = new KeyValueReadOperation<>(getClient(), getCodec(), memLimit,
memSamples, Type.STRUCT);
operation.setPostOperator(new StructPostOperator<>(getCodec()));
return operation;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy