
com.redislabs.lettusearch.aggregate.AggregateWithCursorOutput Maven / Gradle / Ivy
package com.redislabs.lettusearch.aggregate;
import io.lettuce.core.codec.RedisCodec;
public class AggregateWithCursorOutput extends AggregateOutput> {
private int count = -1;
public AggregateWithCursorOutput(RedisCodec codec) {
super(codec, new AggregateWithCursorResults<>());
}
@Override
public void set(long integer) {
if (getMapCount() == output.size()) {
output.cursor(integer);
} else {
super.set(integer);
}
}
@Override
public void multi(int count) {
if (this.count == -1) {
this.count = count;
} else {
super.multi(count);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy