Class HashRedisRowDecoder
java.lang.Object
io.trino.plugin.redis.decoder.hash.HashRedisRowDecoder
- All Implemented Interfaces:
RowDecoder,RedisRowDecoder
The row decoder for the Redis values that are stored in Hash format.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHashRedisRowDecoder(Map<DecoderColumnHandle, RedisFieldDecoder<String>> fieldDecoders) -
Method Summary
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
HashRedisRowDecoder
-
-
Method Details
-
decodeRow
Description copied from interface:RedisRowDecoderDecodes a given map into field values.- Specified by:
decodeRowin interfaceRedisRowDecoder- Parameters:
dataMap- The row data as fields map- Returns:
- Returns mapping from column handle to decoded value. Unmapped columns will be reported as null. Optional.empty() signals decoding error.
-
decodeRow
- Specified by:
decodeRowin interfaceRowDecoder
-