File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
driver/src/main/java/jdbc/client/result/parser Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,18 @@ boolean isRaw() {
173173 }
174174 };
175175
176+ public static final ResultParser STRING_MAP_FROM_PAIRS = new MapResultParser <String , String >() {
177+ @ Override
178+ protected @ NotNull MapEncoder <String > getEncoder () {
179+ return EncoderFactory .STRING_MAP_FROM_PAIRS ;
180+ }
181+
182+ @ Override
183+ protected @ NotNull SimpleConverter <String , String > getConverter () {
184+ return ConverterFactory .STRING ;
185+ }
186+ };
187+
176188
177189 /* ------------------------------------------------- Native ------------------------------------------------- */
178190
Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ private ResultParsers() {
397397 CRP_MAP .put (RedisCommands .FT_ALIASDEL , STRING );
398398 CRP_MAP .put (RedisCommands .FT_ALIASUPDATE , STRING );
399399 CRP_MAP .put (RedisCommands .FT_ALTER , STRING );
400- CRP_MAP .put (RedisCommands .FT_CONFIG_GET , STRING_MAP );
400+ CRP_MAP .put (RedisCommands .FT_CONFIG_GET , STRING_MAP_FROM_PAIRS );
401401 CRP_MAP .put (RedisCommands .FT_CONFIG_SET , STRING );
402402 CRP_MAP .put (RedisCommands .FT_CREATE , STRING );
403403 CRP_MAP .put (RedisCommands .FT_CURSOR_DEL , STRING );
Original file line number Diff line number Diff line change @@ -144,6 +144,13 @@ private EncoderFactory() {
144144 }
145145 };
146146
147+ public static final MapEncoder <String > STRING_MAP_FROM_PAIRS = new SimpleMapEncoder <>() {
148+ @ Override
149+ protected @ NotNull Builder <Map <String , String >> getMapBuilder () {
150+ return BuilderFactory .STRING_MAP_FROM_PAIRS ;
151+ }
152+ };
153+
147154
148155 /* ------------------------------------------------- Native ------------------------------------------------- */
149156
You can’t perform that action at this time.
0 commit comments