K - Key type.V - Value type.public class AggregateReplyParser<K,V> extends Object implements ComplexDataParser<AggregationReply<K,V>>
This parser converts the response from the Redis FT.AGGREGATE command into a list of SearchReply objects. The
FT.AGGREGATE command returns an array where each element represents a separate aggregation result that can be parsed by the
SearchReplyParser.
SearchReplyParser,
SearchReply| Constructor and Description |
|---|
AggregateReplyParser(RedisCodec<K,V> codec,
boolean withCursor) |
| Modifier and Type | Method and Description |
|---|---|
AggregationReply<K,V> |
parse(ComplexData data)
Parses the complex data from FT.AGGREGATE command into a list of SearchReply objects.
|
public AggregateReplyParser(RedisCodec<K,V> codec, boolean withCursor)
public AggregationReply<K,V> parse(ComplexData data)
The method expects the data to be an array where each element is itself a complex data structure that can be parsed by
SearchReplyParser. If the input data is null, empty, or cannot be converted to a list, an empty list is returned.
parse in interface ComplexDataParser<AggregationReply<K,V>>data - the complex data from the FT.AGGREGATE command responseCopyright © 2025 lettuce.io. All rights reserved.