mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-24 08:00:00 -06:00
Cmd toString labels indirect impls
This commit is contained in:
parent
76ab3672ac
commit
27894fd8c5
@ -133,8 +133,12 @@ public class Cmd {
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(cmdType.toString());
|
||||
sb.append(switch (cmdType) {
|
||||
case indirect -> getArgs().containsKey("_impl") ? getArgs().get("_impl").getValue() : "[]";
|
||||
default -> cmdType.name();
|
||||
});
|
||||
for (CmdArg value : getArgs().values()) {
|
||||
if (value.getParam().name.startsWith("_impl")) continue;
|
||||
sb.append(" ").append(value);
|
||||
}
|
||||
return sb.toString();
|
||||
|
Loading…
Reference in New Issue
Block a user