mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-01-11 08:22:04 -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() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
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()) {
|
for (CmdArg value : getArgs().values()) {
|
||||||
|
if (value.getParam().name.startsWith("_impl")) continue;
|
||||||
sb.append(" ").append(value);
|
sb.append(" ").append(value);
|
||||||
}
|
}
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
|
Loading…
Reference in New Issue
Block a user