Source:
<code>public Flux<CommandResponse<ZRangeCommand, Flux<Tuple>>> zRange(Publisher<ZRangeCommand> commands) { return connection.execute(cmd -> Flux.from(commands).concatMap(command -> { Assert.notNull(command.getKey(), "Key must not be null!"); Assert.notNull(command.getRange(), "Range must not be null!"); Flux<Tuple> result; if (ObjectUtils.nullSafeEquals(command.getDirection(), Direction.ASC)) { if (command.isWithScores()) { <START> result = cmd <END> .zrangeWithScores(command.getKey(), command.getRange().getLowerBound().getValue().orElse(Long.MIN_VALUE), command.getRange().getUpperBound().getValue().orElse(Long.MAX_VALUE)) .map(sc -> (Tuple) new DefaultTuple(getBytes(sc), sc.getScore())); } else { result = cmd .zrange(command.getKey(), command.getRange().getLowerBound().getValue().orElse(Long.MIN_VALUE), command.getRange().getUpperBound().getValue().orElse(Long.MAX_VALUE)) .map(value -> (Tuple) new DefaultTuple(ByteUtils.getBytes(value), Double.NaN)); } } else { if (command.isWithScores()) { result = cmd .zrevrangeWithScores(command.getKey(), command.getRange().getLowerBound().getValue().orElse(Long.MIN_VALUE), command.getRange().getUpperBound().getValue().orElse(Long.MAX_VALUE)) .map(sc -> (Tuple) new DefaultTuple(getBytes(sc), sc.getScore())); } else { result = cmd .zrevrange(command.getKey(), command.getRange().getLowerBound().getValue().orElse(Long.MIN_VALUE), command.getRange().getUpperBound().getValue().orElse(Long.MAX_VALUE)) .map(value -> (Tuple) new DefaultTuple(ByteUtils.getBytes(value), Double.NaN)); } } return Mono.just(new CommandResponse<>(command, result)); })); }</code><technical_language>starting index (unbounded) 0L -2<sup>63</sup></technical_language>

Target:
public Flux<CommandResponse<ZRangeCommand, Flux<Tuple>>> zRange(Publisher<ZRangeCommand> commands) { return connection.execute(cmd -> Flux.from(commands).concatMap(command -> { Assert.notNull(command.getKey(), "Key must not be null!"); Assert.notNull(command.getRange(), "Range must not be null!"); Flux<Tuple> result; if (ObjectUtils.nullSafeEquals(command.getDirection(), Direction.ASC)) { if (command.isWithScores()) { result = cmd .zrangeWithScores(command.getKey(), command.getRange().getLowerBound().getValue().orElse(0L), command.getRange().getUpperBound().getValue().orElse(Long.MAX_VALUE)) .map(sc -> (Tuple) new DefaultTuple(getBytes(sc), sc.getScore())); } else { result = cmd .zrange(command.getKey(), command.getRange().getLowerBound().getValue().orElse(0L), command.getRange().getUpperBound().getValue().orElse(Long.MAX_VALUE)) .map(value -> (Tuple) new DefaultTuple(ByteUtils.getBytes(value), Double.NaN)); } } else { if (command.isWithScores()) { result = cmd .zrevrangeWithScores(command.getKey(), command.getRange().getLowerBound().getValue().orElse(0L), command.getRange().getUpperBound().getValue().orElse(Long.MAX_VALUE)) .map(sc -> (Tuple) new DefaultTuple(getBytes(sc), sc.getScore())); } else { result = cmd .zrevrange(command.getKey(), command.getRange().getLowerBound().getValue().orElse(0L), command.getRange().getUpperBound().getValue().orElse(Long.MAX_VALUE)) .map(value -> (Tuple) new DefaultTuple(ByteUtils.getBytes(value), Double.NaN)); } } return Mono.just(new CommandResponse<>(command, result)); })); }